Search in sources :

Example 91 with DialogFragment

use of android.app.DialogFragment in project JavaForFun by gumartinm.

the class Test3Activity method createAlertDialog.

void createAlertDialog(int title) {
    DialogFragment newFragment = AlertDialogFragment.newInstance(title);
    newFragment.show(getFragmentManager(), "alertDialog");
}
Also used : DialogFragment(android.app.DialogFragment)

Example 92 with DialogFragment

use of android.app.DialogFragment in project JavaForFun by gumartinm.

the class Test3Activity method createErrorDialog.

void createErrorDialog(int title) {
    DialogFragment newFragment = ErrorDialogFragment.newInstance(title);
    newFragment.show(getFragmentManager(), "errorDialog");
}
Also used : DialogFragment(android.app.DialogFragment)

Example 93 with DialogFragment

use of android.app.DialogFragment in project JavaForFun by gumartinm.

the class MobiAdsLoginActivity method createErrorDialog.

private void createErrorDialog(int title) {
    DialogFragment newFragment = ErrorDialogFragment.newInstance(title);
    newFragment.show(getFragmentManager(), "errorDialog");
}
Also used : DialogFragment(android.app.DialogFragment)

Example 94 with DialogFragment

use of android.app.DialogFragment in project JavaForFun by gumartinm.

the class MobiAdsLoginActivity method createAlertDialog.

void createAlertDialog(int title) {
    DialogFragment newFragment = AlertDialogFragment.newInstance(title);
    newFragment.show(getFragmentManager(), "alertDialog");
}
Also used : DialogFragment(android.app.DialogFragment)

Example 95 with DialogFragment

use of android.app.DialogFragment in project android_packages_apps_CMParts by LineageOS.

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 CustomDialogPreference) {
        f = CustomDialogPreference.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) CustomDialogPreference(org.cyanogenmod.cmparts.widget.CustomDialogPreference)

Aggregations

DialogFragment (android.app.DialogFragment)110 InstrumentedDialogFragment (com.android.settings.core.instrumentation.InstrumentedDialogFragment)26 Fragment (android.app.Fragment)13 Activity (android.app.Activity)12 FragmentManager (android.app.FragmentManager)8 SelectPhoneAccountDialogFragment (com.android.contacts.common.widget.SelectPhoneAccountDialogFragment)8 FragmentTransaction (android.app.FragmentTransaction)7 PhoneAccountHandle (android.telecom.PhoneAccountHandle)7 SupportDisclaimerDialogFragment (com.android.settings.support.SupportDisclaimerDialogFragment)7 SupportPhoneDialogFragment (com.android.settings.support.SupportPhoneDialogFragment)7 SelectPhoneAccountListener (com.android.contacts.common.widget.SelectPhoneAccountDialogFragment.SelectPhoneAccountListener)6 Context (android.content.Context)5 Bundle (android.os.Bundle)5 CustomDialogPreference (com.android.settingslib.CustomDialogPreference)5 CustomEditTextPreference (com.android.settingslib.CustomEditTextPreference)5 Intent (android.content.Intent)4 KeyguardManager (android.app.KeyguardManager)3 ProgressDialog (android.app.ProgressDialog)3 Uri (android.net.Uri)3 TelephonyManager (android.telephony.TelephonyManager)3