Skip to content
Permalink
Browse files
Merge pull request #11448 from t895/nav-fix-api-26
Android: Fix navigation bar buttons appearing invisible on API 26
  • Loading branch information
JosJuice committed Jan 16, 2023
2 parents aacd66b + dbe03a4 commit 59b276e
Showing 1 changed file with 5 additions and 1 deletion.
@@ -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) {

0 comments on commit 59b276e

Please sign in to comment.