Index: sky/shell/org/domokit/sky/shell/SkyActivity.java |
diff --git a/sky/shell/org/domokit/sky/shell/SkyActivity.java b/sky/shell/org/domokit/sky/shell/SkyActivity.java |
index e37114d64835c92c96afc130d1e7075cc48bccd6..28226391ed10b2d2f2041a1da6d0389ad42c9cfe 100644 |
--- a/sky/shell/org/domokit/sky/shell/SkyActivity.java |
+++ b/sky/shell/org/domokit/sky/shell/SkyActivity.java |
@@ -5,6 +5,7 @@ |
package org.domokit.sky.shell; |
import android.app.Activity; |
+import android.os.Build; |
import android.os.Bundle; |
import android.view.View; |
import android.view.WindowManager; |
@@ -24,7 +25,9 @@ public class SkyActivity extends Activity { |
getWindow().addFlags( |
WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); |
- getWindow().setStatusBarColor(0x40000000); |
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { |
+ getWindow().setStatusBarColor(0x40000000); |
+ } |
getWindow().getDecorView().setSystemUiVisibility( |
View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); |