mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-16 20:00:36 +01:00
use the selected navigation bar color if the tab holder isnt visible
This commit is contained in:
parent
4edd5d740b
commit
a8836420f8
@ -463,7 +463,12 @@ class MainActivity : SimpleActivity() {
|
|||||||
updateBottomTabItemColors(inactiveView, false)
|
updateBottomTabItemColors(inactiveView, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
val bottomBarColor = getBottomNavigationBackgroundColor()
|
val bottomBarColor = if (main_tabs_holder.isGone()) {
|
||||||
|
config.navigationBarColor
|
||||||
|
} else {
|
||||||
|
getBottomNavigationBackgroundColor()
|
||||||
|
}
|
||||||
|
|
||||||
main_tabs_holder.setBackgroundColor(bottomBarColor)
|
main_tabs_holder.setBackgroundColor(bottomBarColor)
|
||||||
updateNavigationBarColor(bottomBarColor)
|
updateNavigationBarColor(bottomBarColor)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user