Hello all,
I do not know if it’s that I’m doing something wrong or if there is any bug, but there is something I do not understand.
In my file.lua on the storyboard I’m loading I have the following code:
[lua]local function onSystemEvent(event)
if (event.type == “applicationStart”) then
native.setProperty(“androidSystemUIVisibility”, “immersiveSticky”)
return true
end
if (event.type == “applicationSuspend”) then
native.setProperty(“androidSystemUIVisibility”, “immersiveSticky”)
return true
end
if (event.type == “applicationResume”) then
native.setProperty(“androidSystemUIVisibility”, “immersiveSticky”)
return true
end
Runtime:addEventListener(“system”, onSystemEvent) [/lua]
With that, allows my application to go to Immersive mode and hides the navigation keys and the status bar. Cool.
But when I go to desktop (press home button):
a) if I press my icon to come back, cool, works fine, immersive mode again (applicationStart moment)
B) if I press the power button and again to be back to my app, cool, works fine, immersive mode again (applicationResume moment)
c) if I press home button and then the task viewer button and choose my application… moooooooock! Application shows a black bar on the bottom where the navigation keys would be if activated (applicationResume moment).
I’ve tried setting up the “applicationSuspend” moment with “immersive” and “immersiveSticky” but same results.
Probably I’m doing something wrong, but maybe is a bug between CoronaSDK and Lollipop.
Please, can someone bring me some light on this?
Thanks a lot. Appreciated.
Best regards (and happy Friday’s coding :))
