Improve navigation bar visibility for devices < M

This commit is contained in:
Rahul Patel
2024-07-22 23:20:24 +05:30
parent 4fbda168d7
commit 43b37839c4

View File

@@ -77,7 +77,9 @@ private fun AppCompatActivity.setSystemBarConfiguration(light: Boolean) {
if (isMAndAbove()) {
isAppearanceLightStatusBars = light
} else {
// Add a semi-transparent black color to the status bar & navigation bar
window.statusBarColor = ColorUtils.setAlphaComponent(Color.BLACK, 120)
window.navigationBarColor = ColorUtils.setAlphaComponent(Color.BLACK, 120)
}
// Navigation bar color