Merge pull request #11448 from t895/nav-fix-api-26

Android: Fix navigation bar buttons appearing invisible on API 26
This commit is contained in:
JosJuice 2023-01-16 18:45:06 +01:00 committed by GitHub
commit 59b276ea87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -81,8 +81,12 @@ object ThemeHelper {
private fun setLightModeSystemBars(windowController: WindowInsetsControllerCompat) {
windowController.isAppearanceLightStatusBars = 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) {
windowController.isAppearanceLightStatusBars = false