Skip to content

Commit 14e7611

Browse files
committed
Fixed safeStorageContext issue in getStrokeColor method
1 parent 3e9d8e6 commit 14e7611

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/keyboard/extensions

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fun Context.getStrokeColor(): Int {
4747
resources.getColor(R.color.md_grey_400, theme)
4848
}
4949
} else {
50-
val lighterColor = getProperBackgroundColor().lightenColor()
50+
val lighterColor = safeStorageContext.getProperBackgroundColor().lightenColor()
5151
if (lighterColor == Color.WHITE || lighterColor == Color.BLACK) {
5252
resources.getColor(R.color.divider_grey, theme)
5353
} else {

0 commit comments

Comments
 (0)