Skip to content

Commit a883642

Browse files
committed
use the selected navigation bar color if the tab holder isnt visible
1 parent 4edd5d7 commit a883642

File tree

1 file changed

+6
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities

1 file changed

+6
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,12 @@ class MainActivity : SimpleActivity() {
463463
updateBottomTabItemColors(inactiveView, false)
464464
}
465465

466-
val bottomBarColor = getBottomNavigationBackgroundColor()
466+
val bottomBarColor = if (main_tabs_holder.isGone()) {
467+
config.navigationBarColor
468+
} else {
469+
getBottomNavigationBackgroundColor()
470+
}
471+
467472
main_tabs_holder.setBackgroundColor(bottomBarColor)
468473
updateNavigationBarColor(bottomBarColor)
469474
}

0 commit comments

Comments
 (0)