navigation bar was not restored when leaving landscape mode
This commit is contained in:
parent
95353ca673
commit
b39b580427
|
@ -295,7 +295,11 @@ public class VideoPlayActivity extends AppCompatActivity {
|
||||||
|
|
||||||
videoPlayerFragment.setIsFullscreen(isLandscape);
|
videoPlayerFragment.setIsFullscreen(isLandscape);
|
||||||
|
|
||||||
|
if ( isLandscape ) {
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||||
|
} else {
|
||||||
|
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue