Skip to content

Commit

Permalink
#1176 - Fix invisible navigation bar icons in light theme for some de…
Browse files Browse the repository at this point in the history
…vices
  • Loading branch information
moezbhatti committed Jun 8, 2018
1 parent 3fbf6df commit 81b82ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions presentation/src/main/java/common/base/QkThemedActivity.kt
Expand Up @@ -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) }
Expand Down

0 comments on commit 81b82ac

Please sign in to comment.