add a toggle for turning flashlight on at startup

This commit is contained in:
tibbi
2018-01-24 23:35:40 +01:00
parent 10dcb51cae
commit 7bdfc7a87f
5 changed files with 42 additions and 6 deletions

View File

@ -15,4 +15,8 @@ class Config(context: Context) : BaseConfig(context) {
var stroboscope: Boolean
get() = prefs.getBoolean(STROBOSCOPE, true)
set(stroboscope) = prefs.edit().putBoolean(STROBOSCOPE, stroboscope).apply()
var turnFlashlightOn: Boolean
get() = prefs.getBoolean(TURN_FLASHLIGHT_ON, false)
set(turnFlashlightOn) = prefs.edit().putBoolean(TURN_FLASHLIGHT_ON, turnFlashlightOn).apply()
}