Search in sources :

Example 86 with FragmentTransaction

use of androidx.fragment.app.FragmentTransaction in project Signal-Android by WhisperSystems.

the class MmsPreferencesActivity method onCreate.

@Override
protected void onCreate(Bundle icicle, boolean ready) {
    assert getSupportActionBar() != null;
    this.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    Fragment fragment = new MmsPreferencesFragment();
    FragmentManager fragmentManager = getSupportFragmentManager();
    FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
    fragmentTransaction.replace(android.R.id.content, fragment);
    fragmentTransaction.commit();
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager) FragmentTransaction(androidx.fragment.app.FragmentTransaction) Fragment(androidx.fragment.app.Fragment)

Example 87 with FragmentTransaction

use of androidx.fragment.app.FragmentTransaction in project Signal-Android by WhisperSystems.

the class AvatarSelectionActivity method onNavigateToCamera.

@Override
public void onNavigateToCamera() {
    if (isCameraFirst() && popToRoot()) {
        return;
    }
    Fragment fragment = CameraFragment.newInstanceForAvatarCapture();
    FragmentTransaction transaction = getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, fragment, IMAGE_CAPTURE);
    if (isGalleryFirst()) {
        transaction.addToBackStack(null);
    }
    transaction.commit();
}
Also used : FragmentTransaction(androidx.fragment.app.FragmentTransaction) MediaGalleryFragment(org.thoughtcrime.securesms.mediasend.v2.gallery.MediaGalleryFragment) ImageEditorFragment(org.thoughtcrime.securesms.scribbles.ImageEditorFragment) Fragment(androidx.fragment.app.Fragment)

Example 88 with FragmentTransaction

use of androidx.fragment.app.FragmentTransaction in project xabber-android by redsolution.

the class ContactListActivity method showMenuFragment.

private void showMenuFragment() {
    if (!isFinishing()) {
        contentFragment = ContactListDrawerFragment.newInstance();
        FragmentTransaction fTrans = getSupportFragmentManager().beginTransaction();
        fTrans.replace(R.id.container, contentFragment);
        fTrans.commit();
    }
}
Also used : FragmentTransaction(androidx.fragment.app.FragmentTransaction)

Example 89 with FragmentTransaction

use of androidx.fragment.app.FragmentTransaction in project xabber-android by redsolution.

the class ContactListActivity method showBottomNavigation.

private void showBottomNavigation() {
    if (!isFinishing()) {
        if (bottomMenu == null)
            bottomMenu = BottomMenu.newInstance();
        FragmentTransaction fTrans = getSupportFragmentManager().beginTransaction();
        fTrans.replace(R.id.containerBottomNavigation, bottomMenu);
        fTrans.commit();
    }
}
Also used : FragmentTransaction(androidx.fragment.app.FragmentTransaction)

Example 90 with FragmentTransaction

use of androidx.fragment.app.FragmentTransaction in project xabber-android by redsolution.

the class ContactListActivity method showContactListFragment.

private void showContactListFragment(@Nullable AccountJid account) {
    if (!isFinishing()) {
        contentFragment = ContactListFragment.newInstance(account);
        FragmentTransaction fTrans = getSupportFragmentManager().beginTransaction();
        fTrans.replace(R.id.container, contentFragment, CONTACT_LIST_TAG);
        fTrans.commit();
    }
}
Also used : FragmentTransaction(androidx.fragment.app.FragmentTransaction)

Aggregations

FragmentTransaction (androidx.fragment.app.FragmentTransaction)186 Fragment (androidx.fragment.app.Fragment)58 FragmentManager (androidx.fragment.app.FragmentManager)53 Bundle (android.os.Bundle)28 Test (org.junit.Test)14 DialogFragment (androidx.fragment.app.DialogFragment)10 OCFileListFragment (com.owncloud.android.ui.fragment.OCFileListFragment)6 Intent (android.content.Intent)5 View (android.view.View)5 ActionBar (androidx.appcompat.app.ActionBar)4 Toolbar (androidx.appcompat.widget.Toolbar)4 SwipeRefreshListFragment (eu.siacs.conversations.ui.widget.SwipeRefreshListFragment)4 File (java.io.File)4 MediaGalleryFragment (org.thoughtcrime.securesms.mediasend.v2.gallery.MediaGalleryFragment)4 SuppressLint (android.annotation.SuppressLint)3 Activity (android.app.Activity)3 DecelerateInterpolator (android.view.animation.DecelerateInterpolator)3 ProcessViewerFragment (com.amaze.filemanager.ui.fragments.ProcessViewerFragment)3 SslUntrustedCertDialog (com.owncloud.android.ui.dialog.SslUntrustedCertDialog)3 TargetApi (android.annotation.TargetApi)2