use of androidx.fragment.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);
}
use of androidx.fragment.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 CustomDialogPreferenceCompat) {
f = CustomDialogPreferenceCompat.CustomPreferenceDialogFragment.newInstance(preference.getKey());
} else if (preference instanceof CustomEditTextPreferenceCompat) {
f = CustomEditTextPreferenceCompat.CustomPreferenceDialogFragment.newInstance(preference.getKey());
} else {
super.onDisplayPreferenceDialog(preference);
return;
}
f.setTargetFragment(this, 0);
f.show(getFragmentManager(), "dialog_preference");
onDialogShowing();
}
use of androidx.fragment.app.DialogFragment in project zype-android by zype.
the class LoginActivity method showDialog.
void showDialog() {
DialogFragment newFragment = CustomAlertDialog.newInstance(R.string.alert_dialog_title_auth_failed, R.string.alert_dialog_message_auth_failed);
// newFragment.show(getSupportFragmentManager(), "dialog");
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
transaction.add(newFragment, "Error credentials dialog");
transaction.commitAllowingStateLoss();
}
use of androidx.fragment.app.DialogFragment in project mopub-android-mediation by mopub.
the class MoPubListFragment method onTrashCanClicked.
@Override
public void onTrashCanClicked(final MoPubSampleAdUnit adUnit) {
final DialogFragment deleteConfirmation = DeleteDialogFragment.newInstance(adUnit);
deleteConfirmation.setTargetFragment(this, 0);
deleteConfirmation.show(getActivity().getSupportFragmentManager(), "delete");
}
use of androidx.fragment.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.
the class BackupWalletDialogFragment method show.
public static void show(final FragmentManager fm) {
final DialogFragment newFragment = new BackupWalletDialogFragment();
newFragment.show(fm, FRAGMENT_TAG);
}
Aggregations