I’m on Nougat, set a desktop as lockscreen—can I hide the navbar on this lockscreen?
I’m on Nougat, set a desktop as lockscreen—can I hide the navbar on this lockscreen? In the desktop settings I can only choose to have the statusbar hidden, for navbar only the tint etc…
]]>
< ![CDATA[
no might be possible with script though
]]>
< ![CDATA[
LL.bindClass(“android.view.Window“);
LL.bindClass(“android.view.View“);
var decorView = LL.getContext().getWindow().getDecorView();
var uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
decorView.setSystemUiVisibility(uiOptions);
return decorView;
]]>
< ![CDATA[
set this in the resume event of the desktop
]]>
< ![CDATA[
It does work indeed! Thank you very much.
]]>
< ![CDATA[
TrianguloY needs a thumbs up he originally wrote how to do this ages ago, it was to hide both bars though IIRC. I just remembered some of his code and checked out the Android dev docs for how to write the rest 😊
]]>
< ![CDATA[
// hides both bars
LL.bindClass(“android.view.Window“);
LL.bindClass(“android.view.View“);
var decorView = LL.getContext().getWindow().getDecorView();
var uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION|View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
return decorView;
]]>