Improve navigation bar visibility for devices < M
This commit is contained in:
@@ -77,7 +77,9 @@ private fun AppCompatActivity.setSystemBarConfiguration(light: Boolean) {
|
|||||||
if (isMAndAbove()) {
|
if (isMAndAbove()) {
|
||||||
isAppearanceLightStatusBars = light
|
isAppearanceLightStatusBars = light
|
||||||
} else {
|
} else {
|
||||||
|
// Add a semi-transparent black color to the status bar & navigation bar
|
||||||
window.statusBarColor = ColorUtils.setAlphaComponent(Color.BLACK, 120)
|
window.statusBarColor = ColorUtils.setAlphaComponent(Color.BLACK, 120)
|
||||||
|
window.navigationBarColor = ColorUtils.setAlphaComponent(Color.BLACK, 120)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Navigation bar color
|
// Navigation bar color
|
||||||
|
|||||||
Reference in New Issue
Block a user