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);
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user