mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-25 00:14:00 +01:00
Restore ExternalPlayer visibility when restoring instance state
This commit is contained in:
parent
12781c9101
commit
dbcb7e5c21
@ -309,6 +309,15 @@ public class MainActivity extends CastEnabledActivity {
|
||||
outState.putInt(SAVE_BACKSTACK_COUNT, getSupportFragmentManager().getBackStackEntryCount());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onRestoreInstanceState(Bundle savedInstanceState) {
|
||||
super.onRestoreInstanceState(savedInstanceState);
|
||||
|
||||
if (getBottomSheet().getState() == BottomSheetBehavior.STATE_EXPANDED) {
|
||||
bottomSheetCallback.onSlide(null, 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
|
Loading…
Reference in New Issue
Block a user