diff options
author | Petar Kukolj <petarkukolj3@yahoo.com> | 2018-11-20 23:40:31 +0100 |
---|---|---|
committer | Petar Kukolj <petarkukolj3@yahoo.com> | 2018-11-20 23:40:31 +0100 |
commit | 98e75fc313df0a6d1fc79485f6d58bfbf2c9bc96 (patch) | |
tree | 407bcb2f3d6aca3b75de1324a44625c270c28154 /app/src | |
parent | 0d1b9c4c55436ae77bbd3067f4eb839a71c20934 (diff) | |
download | AntennaPod-98e75fc313df0a6d1fc79485f6d58bfbf2c9bc96.zip |
Fix not going back on child fragments
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index d2a0c3aab..122b6040e 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -648,6 +648,8 @@ public class MainActivity extends CastEnabledActivity implements NavDrawerActivi public void onBackPressed() { if(isDrawerOpen()) { drawerLayout.closeDrawer(navDrawer); + } else if(getSupportFragmentManager().getBackStackEntryCount() != 0) { + super.onBackPressed(); } else { switch (UserPreferences.getBackButtonBehavior()) { case OPEN_DRAWER: |