diff options
author | ByteHamster <info@bytehamster.com> | 2019-09-27 13:25:38 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-09-27 14:03:27 +0200 |
commit | 5b909894f4bdb2f0cbfca3b5becdb7fb6106f3e8 (patch) | |
tree | bce842c31e8e21b4928199a5d5df6fc1b0b25348 /app/src/main | |
parent | 872b7a813db79107047f70a3513b4ae8c3d4ee32 (diff) | |
download | AntennaPod-5b909894f4bdb2f0cbfca3b5becdb7fb6106f3e8.zip |
Keep background fragments alive
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 10 |
1 files changed, 6 insertions, 4 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 912f07747..7ee8ef8d5 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -389,14 +389,16 @@ public class MainActivity extends CastEnabledActivity implements NavDrawerActivi break; case FLIP: transaction.setCustomAnimations( - R.anim.card_flip_right_in, - R.anim.card_flip_right_out, R.anim.card_flip_left_in, - R.anim.card_flip_left_out); + R.anim.card_flip_left_out, + R.anim.card_flip_right_in, + R.anim.card_flip_right_out); break; } - transaction.replace(R.id.main_view, fragment, "main") + transaction + .hide(getSupportFragmentManager().findFragmentByTag("main")) + .add(R.id.main_view, fragment, "main") .addToBackStack(null) .commit(); } |