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