Fix bug where back stack can get stuck in the gallery.

fork-5.53.8
Greyson Parrelli 2019-01-15 15:08:35 -08:00
rodzic 535e00c6d0
commit b08f81a8dc
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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