mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
use the stored color at bright display
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package com.simplemobiletools.flashlight.helpers
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Color
|
||||
import com.simplemobiletools.commons.helpers.BaseConfig
|
||||
|
||||
class Config(context: Context) : BaseConfig(context) {
|
||||
@ -27,4 +28,8 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
var stroboscopeFrequency: Long
|
||||
get() = prefs.getLong(STROBOSCOPE_FREQUENCY, 1000L)
|
||||
set(stroboscopeFrequency) = prefs.edit().putLong(STROBOSCOPE_FREQUENCY, stroboscopeFrequency).apply()
|
||||
|
||||
var brightDisplayColor: Int
|
||||
get() = prefs.getInt(BRIGHT_DISPLAY_COLOR, Color.WHITE)
|
||||
set(brightDisplayColor) = prefs.edit().putInt(BRIGHT_DISPLAY_COLOR, brightDisplayColor).apply()
|
||||
}
|
||||
|
Reference in New Issue
Block a user