mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
parent
da0c7d7484
commit
16f6be3613
1 changed files with 3 additions and 1 deletions
|
@ -359,8 +359,10 @@ public class ReaderActivity extends BaseRxActivity<ReaderPresenter> {
|
||||||
private void createUiHideFlags(boolean statusBarHidden) {
|
private void createUiHideFlags(boolean statusBarHidden) {
|
||||||
uiFlags = 0;
|
uiFlags = 0;
|
||||||
uiFlags |= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
|
uiFlags |= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
|
||||||
if (statusBarHidden)
|
if (statusBarHidden) {
|
||||||
uiFlags |= View.SYSTEM_UI_FLAG_FULLSCREEN;
|
uiFlags |= View.SYSTEM_UI_FLAG_FULLSCREEN;
|
||||||
|
uiFlags |= View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
|
||||||
|
}
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||||
uiFlags |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
|
uiFlags |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue