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();
}
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();
}
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();
}
}
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();
}
}
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();
}
}
Aggregations