use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class SimDialogActivity method showOrUpdateDialog.
private void showOrUpdateDialog() {
final int dialogType = getIntent().getIntExtra(DIALOG_TYPE_KEY, INVALID_PICK);
final String tag = Integer.toString(dialogType);
final FragmentManager fragmentManager = getSupportFragmentManager();
SimDialogFragment fragment = (SimDialogFragment) fragmentManager.findFragmentByTag(tag);
if (fragment == null) {
fragment = createFragment(dialogType);
fragment.show(fragmentManager, tag);
} else {
fragment.updateDialog();
}
}
use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class DisableDevSettingsDialogFragment method show.
public static void show(DevelopmentSettingsDashboardFragment host) {
final DisableDevSettingsDialogFragment dialog = new DisableDevSettingsDialogFragment();
dialog.setTargetFragment(host, 0);
final FragmentManager manager = host.getActivity().getSupportFragmentManager();
dialog.show(manager, TAG);
}
use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class UpdateRecoveryWarningDialog method show.
public static void show(Fragment host) {
final FragmentManager manager = host.getActivity().getSupportFragmentManager();
if (manager.findFragmentByTag(TAG) == null) {
final UpdateRecoveryWarningDialog dialog = new UpdateRecoveryWarningDialog();
dialog.setTargetFragment(host, 0);
dialog.show(manager, TAG);
}
}
use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class EnableAdbWarningDialog method show.
public static void show(Fragment host) {
final FragmentManager manager = host.getActivity().getSupportFragmentManager();
if (manager.findFragmentByTag(TAG) == null) {
final EnableAdbWarningDialog dialog = new EnableAdbWarningDialog();
dialog.setTargetFragment(host, 0);
dialog.show(manager, TAG);
}
}
use of androidx.fragment.app.FragmentManager in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class EnableOemUnlockSettingWarningDialog method show.
public static void show(Fragment host) {
final FragmentManager manager = host.getActivity().getSupportFragmentManager();
if (manager.findFragmentByTag(TAG) == null) {
final EnableOemUnlockSettingWarningDialog dialog = new EnableOemUnlockSettingWarningDialog();
dialog.setTargetFragment(host, 0);
dialog.show(manager, TAG);
}
}
Aggregations