2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

fwgslib: fix immersive mode check

This commit is contained in:
mittorn 2020-07-10 06:52:57 +07:00
parent 8082d2092f
commit 8b6243d872

View File

@ -260,10 +260,10 @@ public class FWGSLib
static class Compat_19 extends Compat_9 static class Compat_19 extends Compat_9
{ {
public void applyImmersiveMode(boolean keyboardVisible, View decorView) public void applyImmersiveMode( boolean keyboardVisible, View decorView )
{ {
//if( !XashActivity.mPref.getBoolean( "immersive_mode", false ) ) if( decorView == null )
// return; return;
if( keyboardVisible ) if( keyboardVisible )
decorView.setSystemUiVisibility( decorView.setSystemUiVisibility(
0x00000100 // View.SYSTEM_UI_FLAG_LAYOUT_STABLE 0x00000100 // View.SYSTEM_UI_FLAG_LAYOUT_STABLE