We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3348740 commit 5b825c8Copy full SHA for 5b825c8
app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt
@@ -30,6 +30,10 @@ class BrightDisplayActivity : SimpleActivity() {
30
}) { wasPositivePressed, color ->
31
if (wasPositivePressed) {
32
config.brightDisplayColor = color
33
+
34
+ val contrastColor = color.getContrastColor()
35
+ bright_display_change_color.setTextColor(contrastColor)
36
+ bright_display_change_color.background.applyColorFilter(contrastColor)
37
} else {
38
setBackgroundColor(config.brightDisplayColor)
39
}
0 commit comments