Merge "Use View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR API now that it's available b/38431856" into ub-launcher3-dorval-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
9c7ed9e9da
@@ -494,9 +494,6 @@ public class Launcher extends BaseActivity
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: use platform flag on API >= 26
|
||||
private static final int SYSTEM_UI_FLAG_LIGHT_NAV_BAR = 0x10;
|
||||
|
||||
/**
|
||||
* Sets the status and/or nav bar to be light or not. Light status bar means dark icons.
|
||||
* @param isLight make sure the system bar is light.
|
||||
@@ -511,14 +508,14 @@ public class Launcher extends BaseActivity
|
||||
newSystemUiFlags |= View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
|
||||
}
|
||||
if (navBar && Utilities.isAtLeastO()) {
|
||||
newSystemUiFlags |= SYSTEM_UI_FLAG_LIGHT_NAV_BAR;
|
||||
newSystemUiFlags |= View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
|
||||
}
|
||||
} else {
|
||||
if (statusBar) {
|
||||
newSystemUiFlags &= ~(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
}
|
||||
if (navBar && Utilities.isAtLeastO()) {
|
||||
newSystemUiFlags &= ~(SYSTEM_UI_FLAG_LIGHT_NAV_BAR);
|
||||
newSystemUiFlags &= ~(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user