Android: Fix navigation bar buttons appearing invisible on API 26

This commit is contained in:
Charles Lombardo 2023-01-15 18:34:05 -05:00
parent 30f0051f9c
commit dbe03a4f76
1 changed files with 5 additions and 1 deletions

View File

@ -81,7 +81,11 @@ object ThemeHelper {
private fun setLightModeSystemBars(windowController: WindowInsetsControllerCompat) {
windowController.isAppearanceLightStatusBars = true
windowController.isAppearanceLightNavigationBars = true
// Fix for an API 26 specific bug where the navigation bar buttons would appear invisible
if (Build.VERSION.SDK_INT != Build.VERSION_CODES.O) {
windowController.isAppearanceLightNavigationBars = true
}
}
private fun setDarkModeSystemBars(windowController: WindowInsetsControllerCompat) {