Is it currently possible to enable immersive mode on Lightning?

Is it currently possible to enable immersive mode on Lightning? I downloaded a setup and spent 2 hours fixing it up to my screen size and resolution, but the nav buttons are overlapping a key widget in the setup, and it’d be too much of a hassle to hop in KWGT and fix the widget up to my exact needs, but long story short, I also can’t just move it up because that messes up another part of the setup. Therefore, my best option is to hide the navigation buttons. Any way to do this?

24 Commentsto Is it currently possible to enable immersive mode on Lightning?

  1. Yes, TrianguloY did that once. Don’t remember how though.

  2. El Buhdai says:

    Lukas Morawietz Does it require scripting or programming or can it be found in the settings menu?

  3. El Buhdai says:

    Lukas Morawietz Ah poo. Do you remember what language? Java?

  4. javascript. you can’t script LL with Java

  5. El Buhdai says:

    Lukas Morawietz Oh yeah, JavaScript is for plugins and extensions, Java is for standalone apps. Thanks!

  6. Tiles app has immersive mode if you’re on N Jahbari Akua​

  7. El Buhdai says:

    Adam C M. :/ My phone is confirmed by Alcatel to be receiving Nougat, but you know how 3rd party manufacturers’ updating speed is. God knows when I’ll be seeing it. Thanks for the suggestion though! I’ll keep it in the back of my mind for when the update finally rolls around for my device.

  8. getActiveScreen().getContext().getWindow().getDecorView().setSystemUiVisibility(4096+4+2);

    set in resumed event for permanent effect.

    Credits to TrianguloY

  9. Was just about to paste that

  10. Chris Chastain

    didn’t just paste it, also adjusted for v14

  11. El Buhdai says:

    Woah! Thanks! Does it mess with the status bar?

  12. El Buhdai says:

    Lukas Morawietz Also, what do you mean by “set in resumed event”. Sorry, I literally just bought Lightning the other day.

  13. bindClass(“android.view.View”);

    getActiveScreen().getContext().getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY+View.SYSTEM_UI_FLAG_HIDE_NAVIGATION+View.SYSTEM_UI_FLAG_FULLSCREEN);

    More verbose, but you can see what the numbers represent.

    “set in resumed event”: create a script with this code, go to your desktop settings, events, resumed, run script, choose your script

  14. El Buhdai says:

    Lukas Morawietz​​ Sick! Thanks a ton!

  15. El Buhdai says:

    Lukas Morawietz So I don’t use both, right? The second one is just expanded so I can get a better understanding, if I read you correctly… Also, when I used the first script I received the following error:

    “At line 1 : TypeError : org.mozillajavascript.ca@6ccedd6 is not a function , it is object”

  16. It works fine for me.

    Did you copy/paste?

    If so, it probably has some invisible character at the end from G+

  17. El Buhdai says:

    Chris Chastain​ I did, so I’ll type it in manually and get back to you. So use the first script, right?

    I’m sorry for the noob questions, y’all. My knowledge of programming is very basic. Gotta finish my course work, lol!

  18. Yes, and I paste stuff from here but delete everything at the end, up to and including the final semi colon and just type the semi colon back in. I suck at it too, and it saves typing.

  19. El Buhdai says:

    Chris Chastain Oh shoot, it worked! Thanks Chris and Lukas! Great community here! Final question. Is this the kind of script that could work if I used it to enable immersive mode in my own app? I mean, obviously I’d need to add code for the context through which it needs to be enabled. But would it work?

  20. No idea, but I doubt it… Lukas Morawietz would be able to answer that.

  21. Immersive mode will be local to the Lightning Launcher app (in fact the window in which it is displayed). It won’t impact other apps, the android system should switch its behavior as soon as another window with a different configuration is displayed.

  22. TrianguloY says:

    Lukas Morawietz what if you add that code to your multi tool app? Could be a nice addition, and no more searching in Google+!

Leave a Reply

Your email address will not be published. Required fields are marked *