Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Don't layout behind the system bar if we can't make it transparent #20

Merged
merged 1 commit into from
Jul 16, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sky/shell/android/org/domokit/sky/shell/SkyActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down