From 8720ecfd167c7081ea38b95b1c065f211273d5a9 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Thu, 16 Jul 2015 15:17:47 -0700 Subject: [PATCH] Don't layout behind the system bar if we can't make it transparent R=abarth@google.com --- sky/shell/android/org/domokit/sky/shell/SkyActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sky/shell/android/org/domokit/sky/shell/SkyActivity.java b/sky/shell/android/org/domokit/sky/shell/SkyActivity.java index 9b30b731789c2..948a87b1c424d 100644 --- a/sky/shell/android/org/domokit/sky/shell/SkyActivity.java +++ b/sky/shell/android/org/domokit/sky/shell/SkyActivity.java @@ -37,9 +37,11 @@ protected void onCreate(Bundle savedInstanceState) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); getWindow().setStatusBarColor(0x40000000); - // TODO(abarth): We should get this value from the Android framework somehow. - edgeDims.top = 25.0; } + // TODO(abarth): We should get this value from the Android framework somehow. + edgeDims.top = 25.0; + // TODO(abarth): Unclear if we want to use fullscreen if we don't have + // a transparent system bar. getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);