Merge pull request #4030 from ByteHamster/restore-visibility
Restore ExternalPlayer visibility when restoring instance state
This commit is contained in:
commit
e22702ec09
@ -309,6 +309,15 @@ public class MainActivity extends CastEnabledActivity {
|
|||||||
outState.putInt(SAVE_BACKSTACK_COUNT, getSupportFragmentManager().getBackStackEntryCount());
|
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
|
@Override
|
||||||
public void onStart() {
|
public void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user