1
0
Fork 0

For #1876 - Correct Navigation Bar Color Logic (#2427)

master
Emily Kager 2019-05-10 18:26:44 -07:00 committed by Colin Lee
parent cc2fad178f
commit 0df12a588d
2 changed files with 1 additions and 8 deletions

View File

@ -105,17 +105,13 @@ class DefaultThemeManager : ThemeManager {
window: Window,
context: Context
) {
if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.O) {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
// API level can display handle light navigation bar color
window.decorView.systemUiVisibility =
window.decorView.systemUiVisibility or
View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR or
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
updateNavigationBar(window, context)
} else {
window.decorView.systemUiVisibility =
window.decorView.systemUiVisibility or
View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
}
}

View File

@ -9,9 +9,6 @@
sure we also get them in 27+ -->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">@bool/theme_is_light</item>
<!-- Style the navigation bar -->
<item name="android:navigationBarColor">?foundation</item>
</style>
<style name="PrivateTheme" parent="PrivateThemeBase">