diff options
author | Roman Birg <roman@cyngn.com> | 2015-05-19 14:06:51 -0700 |
---|---|---|
committer | Roman Birg <roman@cyngn.com> | 2015-12-11 10:36:23 -0800 |
commit | 35761ffce2089e037e0f37999704819b3e1ce11e (patch) | |
tree | f31233619ac5c6a31262101688adef9852de88c4 /src | |
parent | 13847228afc320824775322ae2e087ec7010f894 (diff) | |
download | packages_apps_Settings-35761ffce2089e037e0f37999704819b3e1ce11e.zip packages_apps_Settings-35761ffce2089e037e0f37999704819b3e1ce11e.tar.gz packages_apps_Settings-35761ffce2089e037e0f37999704819b3e1ce11e.tar.bz2 |
CryptKeeper: layout whole screen in bounds
Add flags to make the screen layout properly on devices with the
navigation bar visible
Change-Id: I8607c8e49ac3625a7fb6a13b4501ea7ac818b9ba
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/CryptKeeper.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java index 0d3b693..7c0e8f0 100644 --- a/src/com/android/settings/CryptKeeper.java +++ b/src/com/android/settings/CryptKeeper.java @@ -424,6 +424,13 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + getWindow().getDecorView().setSystemUiVisibility( + View.SYSTEM_UI_FLAG_LAYOUT_STABLE + | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar + | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar + | View.SYSTEM_UI_FLAG_IMMERSIVE); + // If we are not encrypted or encrypting, get out quickly. final String state = SystemProperties.get("vold.decrypt"); if (!isDebugView() && ("".equals(state) || DECRYPT_STATE.equals(state))) { |