mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-27 17:23:54 +01:00
Keep background fragments alive
This commit is contained in:
parent
872b7a813d
commit
5b909894f4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user