#1176 - Fix invisible navigation bar icons in light theme for some devices

This commit is contained in:
Moez Bhatti
2018-06-07 22:46:54 -04:00
parent 3fbf6dfa3a
commit 81b82ac819
@@ -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) }