Immersive mode instructions reappear every time the device enters this mode

前端 未结 2 880
醉酒成梦
醉酒成梦 2020-12-24 15:33

My app uses the new \"immersive mode\" by calling (in onCreate):

getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGAT

2条回答
  •  抹茶落季
    2020-12-24 15:44

    More succinctly - in K, users will see the confirmation when entering immersive mode if:

    • They have not yet confirmed it for that app (package).
    • They "panicked" last time they were in immersive mode. "Panic" in this case means toggling the screen off, then back on in under 5 seconds (by default).

提交回复
热议问题