navigation bar was not restored when leaving landscape mode

This commit is contained in:
Olivier Bouillet 2020-09-22 23:13:23 +02:00
parent 95353ca673
commit b39b580427

View File

@ -295,7 +295,11 @@ public class VideoPlayActivity extends AppCompatActivity {
videoPlayerFragment.setIsFullscreen(isLandscape);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
if ( isLandscape ) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
} else {
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
}
@Override