Invert nav bar to light when status bar changes in all apps.

Change-Id: I48acf2f20cd3e265e2f84bfa412d3d233cb76a01
This commit is contained in:
Hyunyoung Song
2016-06-27 17:48:17 -07:00
parent f50b3cb3cb
commit 4a582162bc

View File

@@ -275,13 +275,17 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
return;
}
int systemUiFlags = mLauncher.getWindow().getDecorView().getSystemUiVisibility();
// SYSTEM_UI_FLAG_LIGHT_NAV_BAR == SYSTEM_UI_FLAG_LIGHT_STATUS_BAR << 1
// Use proper constant once API is submitted.
if (enable) {
mLauncher.getWindow().getDecorView().setSystemUiVisibility(systemUiFlags
| View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
| View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
| (View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR << 1));
} else {
mLauncher.getWindow().getDecorView().setSystemUiVisibility(systemUiFlags
& ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
& ~(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR << 1)));
}
mLightStatusBar = enable;