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");
}
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");
}
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");
}
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");
}
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();
}
Aggregations