You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
I work on an immersive* activity. When I show an alert ctx.alert {....}, the system bar re-appears. It would seem a hacky fix for this is to set the dialog to not focusable before showing it:
but AlertBuilder does not have any accessor to window...
How do I do this?
*)
window.decorView.systemUiVisibility = (SYSTEM_UI_FLAG_LAYOUT_STABLE
or SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
or SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
or SYSTEM_UI_FLAG_HIDE_NAVIGATION
or SYSTEM_UI_FLAG_FULLSCREEN
or SYSTEM_UI_FLAG_IMMERSIVE_STICKY)
The text was updated successfully, but these errors were encountered:
I work on an immersive* activity. When I show an alert
ctx.alert {....}
, the system bar re-appears. It would seem a hacky fix for this is to set the dialog to not focusable before showing it:https://stackoverflow.com/questions/22794049/how-do-i-maintain-the-immersive-mode-in-dialogs/24549869#24549869
but AlertBuilder does not have any accessor to window...
How do I do this?
*)
window.decorView.systemUiVisibility = (SYSTEM_UI_FLAG_LAYOUT_STABLE
or SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
or SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
or SYSTEM_UI_FLAG_HIDE_NAVIGATION
or SYSTEM_UI_FLAG_FULLSCREEN
or SYSTEM_UI_FLAG_IMMERSIVE_STICKY)
The text was updated successfully, but these errors were encountered: