mirror of
https://github.com/sschueller/peertube-android
synced 2025-02-08 07:38:47 +01:00
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:
commit
17f89eece8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user