Search in sources :

Example 1 with MediaGalleryFragment

use of org.thoughtcrime.securesms.mediasend.v2.gallery.MediaGalleryFragment in project Signal-Android by WhisperSystems.

the class AvatarSelectionActivity method onGalleryClicked.

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

Example 2 with MediaGalleryFragment

use of org.thoughtcrime.securesms.mediasend.v2.gallery.MediaGalleryFragment in project Signal-Android by signalapp.

the class AvatarSelectionActivity method onGalleryClicked.

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

Aggregations

FragmentTransaction (androidx.fragment.app.FragmentTransaction)2 MediaGalleryFragment (org.thoughtcrime.securesms.mediasend.v2.gallery.MediaGalleryFragment)2