From dbe03a4f7652dc7481f981fefb20b1ed3b38a1de Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Sun, 15 Jan 2023 18:34:05 -0500 Subject: [PATCH] Android: Fix navigation bar buttons appearing invisible on API 26 --- .../java/org/dolphinemu/dolphinemu/utils/ThemeHelper.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ThemeHelper.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ThemeHelper.kt index 7328126297..5bdef6082c 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ThemeHelper.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ThemeHelper.kt @@ -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) {