use of android.app.FragmentTransaction in project Android-IMSI-Catcher-Detector by CellularPrivacy.
the class SettingsActivity method loadFragment.
private void loadFragment() {
SettingsFragment settingsFragment = new SettingsFragment();
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(android.R.id.content, settingsFragment);
fragmentTransaction.commit();
}
use of android.app.FragmentTransaction in project AndroidChromium by JackyAndroid.
the class SyncCustomizationFragment method displayCustomPassphraseDialog.
private void displayCustomPassphraseDialog() {
FragmentTransaction ft = getFragmentManager().beginTransaction();
PassphraseCreationDialogFragment dialog = new PassphraseCreationDialogFragment();
dialog.setTargetFragment(this, -1);
dialog.show(ft, FRAGMENT_CUSTOM_PASSPHRASE);
}
use of android.app.FragmentTransaction in project AndroidChromium by JackyAndroid.
the class SyncCustomizationFragment method displayPassphraseTypeDialog.
private void displayPassphraseTypeDialog() {
FragmentTransaction ft = getFragmentManager().beginTransaction();
PassphraseTypeDialogFragment dialog = PassphraseTypeDialogFragment.create(mProfileSyncService.getPassphraseType(), mProfileSyncService.getExplicitPassphraseTime(), mProfileSyncService.isEncryptEverythingAllowed());
dialog.show(ft, FRAGMENT_PASSPHRASE_TYPE);
dialog.setTargetFragment(this, -1);
}
use of android.app.FragmentTransaction in project AndroidChromium by JackyAndroid.
the class PassphraseActivity method displayPassphraseDialog.
private void displayPassphraseDialog() {
assert ProfileSyncService.get().isBackendInitialized();
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.addToBackStack(null);
PassphraseDialogFragment.newInstance(null).show(ft, FRAGMENT_PASSPHRASE);
}
use of android.app.FragmentTransaction in project android_frameworks_base by DirtyUnicorns.
the class PickFragment method show.
public static void show(FragmentManager fm) {
// Fragment can be restored by FragmentManager automatically.
if (get(fm) != null) {
return;
}
final PickFragment fragment = new PickFragment();
final FragmentTransaction ft = fm.beginTransaction();
ft.replace(R.id.container_save, fragment, TAG);
ft.commitAllowingStateLoss();
}
Aggregations