use the selected navigation bar color if the tab holder isnt visible

This commit is contained in:
tibbi 2022-11-17 15:52:20 +01:00
parent 4edd5d740b
commit a8836420f8
1 changed files with 6 additions and 1 deletions

View File

@ -463,7 +463,12 @@ class MainActivity : SimpleActivity() {
updateBottomTabItemColors(inactiveView, false)
}
val bottomBarColor = getBottomNavigationBackgroundColor()
val bottomBarColor = if (main_tabs_holder.isGone()) {
config.navigationBarColor
} else {
getBottomNavigationBackgroundColor()
}
main_tabs_holder.setBackgroundColor(bottomBarColor)
updateNavigationBarColor(bottomBarColor)
}