Merge pull request #226 from freeboub/bugfix/rotation_to_portrait_doesn_t_restore_status_bar

navigation bar was not restored when leaving landscape mode
This commit is contained in:
Stefan Schüller 2020-09-25 07:57:18 +02:00 committed by GitHub
commit 17f89eece8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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