Search in sources :

Example 11 with AsyncDialogFragment

use of com.ichi2.anki.dialogs.AsyncDialogFragment in project Anki-Android by ankidroid.

the class DeckPicker method showImportDialog.

public void showImportDialog(int id, String message) {
    Timber.d("showImportDialog() delegating to ImportDialog");
    if (message == null) {
        message = "";
    }
    AsyncDialogFragment newFragment = ImportDialog.newInstance(id, message);
    showAsyncDialogFragment(newFragment);
}
Also used : AsyncDialogFragment(com.ichi2.anki.dialogs.AsyncDialogFragment)

Aggregations

AsyncDialogFragment (com.ichi2.anki.dialogs.AsyncDialogFragment)9 Intent (android.content.Intent)2 Bundle (android.os.Bundle)2 SuppressLint (android.annotation.SuppressLint)1 TargetApi (android.annotation.TargetApi)1 Dialog (android.app.Dialog)1 PendingIntent (android.app.PendingIntent)1 ClipData (android.content.ClipData)1 ClipboardManager (android.content.ClipboardManager)1 Context (android.content.Context)1 SharedPreferences (android.content.SharedPreferences)1 Resources (android.content.res.Resources)1 Color (android.graphics.Color)1 ColorDrawable (android.graphics.drawable.ColorDrawable)1 Uri (android.net.Uri)1 Build (android.os.Build)1 Environment (android.os.Environment)1 TextUtils (android.text.TextUtils)1 Gravity (android.view.Gravity)1 KeyEvent (android.view.KeyEvent)1