mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-15 19:10:10 -07:00
Fix: miui system bar appearing
This commit is contained in:
parent
76e66d7483
commit
7cc5a24f54
2 changed files with 1 additions and 3 deletions
|
|
@ -46,6 +46,7 @@ public abstract class BaseActivity extends AppCompatActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onPostResume() {
|
protected void onPostResume() {
|
||||||
super.onPostResume();
|
super.onPostResume();
|
||||||
|
Tools.setFullscreen(this, setFullscreen());
|
||||||
Tools.ignoreNotch(PREF_IGNORE_NOTCH,this);
|
Tools.ignoreNotch(PREF_IGNORE_NOTCH,this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -245,9 +245,6 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
|
||||||
super.onResume();
|
super.onResume();
|
||||||
mIsResuming = true;
|
mIsResuming = true;
|
||||||
if(mGyroControl != null) mGyroControl.enable();
|
if(mGyroControl != null) mGyroControl.enable();
|
||||||
final int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
|
|
||||||
final View decorView = getWindow().getDecorView();
|
|
||||||
decorView.setSystemUiVisibility(uiOptions);
|
|
||||||
CallbackBridge.nativeSetWindowAttrib(LwjglGlfwKeycode.GLFW_HOVERED, 1);
|
CallbackBridge.nativeSetWindowAttrib(LwjglGlfwKeycode.GLFW_HOVERED, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue