From 14e761127d54c280942359ff93479a7397c24e7e Mon Sep 17 00:00:00 2001 From: merkost Date: Tue, 13 Jun 2023 18:09:45 +1000 Subject: [PATCH] Fixed safeStorageContext issue in getStrokeColor method --- .../kotlin/com/simplemobiletools/keyboard/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt index 1d6f44f..9f2f28d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt @@ -47,7 +47,7 @@ fun Context.getStrokeColor(): Int { resources.getColor(R.color.md_grey_400, theme) } } else { - val lighterColor = getProperBackgroundColor().lightenColor() + val lighterColor = safeStorageContext.getProperBackgroundColor().lightenColor() if (lighterColor == Color.WHITE || lighterColor == Color.BLACK) { resources.getColor(R.color.divider_grey, theme) } else {