Skip to content

Settings and activity

1 result found

  1. 1 vote
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    5 comments  ·  General  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Eric commented  · 

    Martin, it looks like the code change for this would be pretty simple: in the call to setSystemUiVisibility() in setLightsOutMode(), replace SYSTEM_UI_FLAG_LOW_PROFILE with SYSTEM_UI_FLAG_IMMERSIVE in conjunction with SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION, i.e.,

    mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

    The only catch I can see is that this flag was introduced in Android 4.4 API, so if you are holding back and wanting to maintain compatibility with pre-KitKat APIs (which seems a little overly conservative), then you couldn't switch to using immersive mode.

    What do you think?