Skip to content

Commit

Permalink
Use safe storage context when accessing preferences
Browse files Browse the repository at this point in the history
Closes #96
  • Loading branch information
naveensingh committed Oct 28, 2024
1 parent 0e3c573 commit 248d18f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ class MyKeyboardView @JvmOverloads constructor(
private fun getKeyColor(): Int {
val backgroundColor = safeStorageContext.getKeyboardBackgroundColor()
val lighterColor = backgroundColor.lightenColor()
val keyColor = if (context.isDynamicTheme()) {
val keyColor = if (safeStorageContext.isDynamicTheme()) {
lighterColor
} else {
if (backgroundColor == Color.BLACK) {
Expand Down

0 comments on commit 248d18f

Please sign in to comment.