From 81b82ac819c46a67f9e6b7ed492418f7f8496621 Mon Sep 17 00:00:00 2001 From: Moez Bhatti Date: Thu, 7 Jun 2018 22:46:54 -0400 Subject: [PATCH] #1176 - Fix invisible navigation bar icons in light theme for some devices --- presentation/src/main/java/common/base/QkThemedActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/presentation/src/main/java/common/base/QkThemedActivity.kt b/presentation/src/main/java/common/base/QkThemedActivity.kt index 3bdf4591..832f6a36 100644 --- a/presentation/src/main/java/common/base/QkThemedActivity.kt +++ b/presentation/src/main/java/common/base/QkThemedActivity.kt @@ -88,6 +88,9 @@ abstract class QkThemedActivity : QkActivity() { else -> View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR } + // Some devices don't let you modify android.R.attr.navigationBarColor + window.navigationBarColor = resolveThemeColor(android.R.attr.windowBackground) + // Set the color for the overflow and navigation icon val textTertiary = resolveThemeColor(android.R.attr.textColorTertiary) toolbar?.overflowIcon = toolbar?.overflowIcon?.apply { setTint(textTertiary) }