Skip to content

Commit 248d18f

Browse files
committed
Use safe storage context when accessing preferences
Closes #96
1 parent 0e3c573 commit 248d18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/fossify/keyboard/views/MyKeyboardView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ class MyKeyboardView @JvmOverloads constructor(
18141814
private fun getKeyColor(): Int {
18151815
val backgroundColor = safeStorageContext.getKeyboardBackgroundColor()
18161816
val lighterColor = backgroundColor.lightenColor()
1817-
val keyColor = if (context.isDynamicTheme()) {
1817+
val keyColor = if (safeStorageContext.isDynamicTheme()) {
18181818
lighterColor
18191819
} else {
18201820
if (backgroundColor == Color.BLACK) {

0 commit comments

Comments
 (0)