Attempt to make us not crash on KitKat.
https://github.com/domokit/mojo/issues/68 R=abarth@chromium.org Review URL: https://codereview.chromium.org/1026873002
This commit is contained in:
parent
e3770bfc19
commit
91fd0ffdfd
@ -5,6 +5,7 @@
|
|||||||
package org.domokit.sky.shell;
|
package org.domokit.sky.shell;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
@ -24,7 +25,9 @@ public class SkyActivity extends Activity {
|
|||||||
|
|
||||||
getWindow().addFlags(
|
getWindow().addFlags(
|
||||||
WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
getWindow().setStatusBarColor(0x40000000);
|
getWindow().setStatusBarColor(0x40000000);
|
||||||
|
}
|
||||||
getWindow().getDecorView().setSystemUiVisibility(
|
getWindow().getDecorView().setSystemUiVisibility(
|
||||||
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||||
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
|
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user