Search in sources :

Example 81 with FragmentTransaction

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();
}
Also used : SettingsFragment(com.secupwn.aimsicd.ui.fragments.SettingsFragment) FragmentManager(android.app.FragmentManager) FragmentTransaction(android.app.FragmentTransaction)

Example 82 with FragmentTransaction

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);
}
Also used : FragmentTransaction(android.app.FragmentTransaction)

Example 83 with FragmentTransaction

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);
}
Also used : FragmentTransaction(android.app.FragmentTransaction)

Example 84 with FragmentTransaction

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);
}
Also used : FragmentTransaction(android.app.FragmentTransaction)

Example 85 with FragmentTransaction

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();
}
Also used : FragmentTransaction(android.app.FragmentTransaction)

Aggregations

FragmentTransaction (android.app.FragmentTransaction)266 FragmentManager (android.app.FragmentManager)84 Fragment (android.app.Fragment)82 Bundle (android.os.Bundle)44 DialogFragment (android.app.DialogFragment)20 Intent (android.content.Intent)18 FragmentActivity (android.support.v4.app.FragmentActivity)16 PreferenceFragment (android.support.v14.preference.PreferenceFragment)7 HashMap (java.util.HashMap)7 View (android.view.View)6 File (java.io.File)6 SuppressLint (android.annotation.SuppressLint)5 Uri (android.net.Uri)5 StorageManager (android.os.storage.StorageManager)5 VolumeInfo (android.os.storage.VolumeInfo)5 Fade (android.transition.Fade)5 TextView (android.widget.TextView)5 Selection (com.android.documentsui.dirlist.MultiSelectManager.Selection)5 IOException (java.io.IOException)5 Map (java.util.Map)4