mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 02:37:46 +00:00
Fix bug where back stack can get stuck in the gallery.
This commit is contained in:
parent
535e00c6d0
commit
b08f81a8dc
@ -123,7 +123,7 @@ public class MediaSendActivity extends PassphraseRequiredActionBarActivity imple
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
MediaSendFragment sendFragment = (MediaSendFragment) getSupportFragmentManager().findFragmentByTag(TAG_SEND);
|
||||
if (sendFragment == null || !sendFragment.handleBackPress()) {
|
||||
if (sendFragment == null || !sendFragment.isVisible() || !sendFragment.handleBackPress()) {
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user