Search in sources :

Example 11 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class PieColor method showDialogInner.

private void showDialogInner(int id) {
    DialogFragment newFragment = MyAlertDialogFragment.newInstance(id);
    newFragment.setTargetFragment(this, 0);
    newFragment.show(getFragmentManager(), "dialog " + id);
}
Also used : DialogFragment(android.app.DialogFragment)

Example 12 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class BlurPersonalizations method showDialogInner.

private void showDialogInner(int id) {
    DialogFragment newFragment = MyAlertDialogFragment.newInstance(id);
    newFragment.setTargetFragment(this, 0);
    newFragment.show(getFragmentManager(), "dialog " + id);
}
Also used : DialogFragment(android.app.DialogFragment)

Example 13 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class AppInfoBase method showDialogInner.

protected void showDialogInner(int id, int moveErrorCode) {
    DialogFragment newFragment = MyAlertDialogFragment.newInstance(id, moveErrorCode);
    newFragment.setTargetFragment(this, 0);
    newFragment.show(getFragmentManager(), "dialog " + id);
}
Also used : DialogFragment(android.app.DialogFragment)

Example 14 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class SettingsPreferenceFragment method onDisplayPreferenceDialog.

@Override
public void onDisplayPreferenceDialog(Preference preference) {
    if (preference.getKey() == null) {
        // Auto-key preferences that don't have a key, so the dialog can find them.
        preference.setKey(UUID.randomUUID().toString());
    }
    DialogFragment f = null;
    if (preference instanceof RestrictedListPreference) {
        f = RestrictedListPreference.RestrictedListPreferenceDialogFragment.newInstance(preference.getKey());
    } else if (preference instanceof CustomListPreference) {
        f = CustomListPreference.CustomListPreferenceDialogFragment.newInstance(preference.getKey());
    } else if (preference instanceof CustomDialogPreference) {
        f = CustomDialogPreference.CustomPreferenceDialogFragment.newInstance(preference.getKey());
    } else if (preference instanceof CustomEditTextPreference) {
        f = CustomEditTextPreference.CustomPreferenceDialogFragment.newInstance(preference.getKey());
    } else {
        super.onDisplayPreferenceDialog(preference);
        return;
    }
    f.setTargetFragment(this, 0);
    f.show(getFragmentManager(), "dialog_preference");
    onDialogShowing();
}
Also used : DialogFragment(android.app.DialogFragment)

Example 15 with DialogFragment

use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class InputMethodsSettings method showDialogInner.

private void showDialogInner(int id) {
    DialogFragment newFragment = MyAlertDialogFragment.newInstance(id);
    newFragment.setTargetFragment(this, 0);
    newFragment.show(getFragmentManager(), "dialog " + id);
}
Also used : DialogFragment(android.app.DialogFragment)

Aggregations

DialogFragment (android.app.DialogFragment)45 Fragment (android.app.Fragment)10 FragmentManager (android.app.FragmentManager)7 FragmentTransaction (android.app.FragmentTransaction)7 ConfirmationDialogFragment (com.fsck.k9.fragment.ConfirmationDialogFragment)3 Intent (android.content.Intent)2 Bundle (android.os.Bundle)2 View (android.view.View)2 TextView (android.widget.TextView)2 GPSAlertDialogFragment (com.agup.gps.fragments.GPSAlertDialogFragment)2 NetworkAlertDialogFragment (com.agup.gps.fragments.NetworkAlertDialogFragment)2 BackupAccountsDialogFragment (com.decad3nce.aegis.Fragments.BackupAccountsDialogFragment)2 ProgressDialogFragment (com.fsck.k9.fragment.ProgressDialogFragment)2 BaseFragment (it.gmariotti.cardslib.demo.fragment.BaseFragment)2 Activity (android.app.Activity)1 DevicePolicyManager (android.app.admin.DevicePolicyManager)1 BroadcastReceiver (android.content.BroadcastReceiver)1 ComponentName (android.content.ComponentName)1 Context (android.content.Context)1 IntentFilter (android.content.IntentFilter)1