add a toggle for showing seconds

This commit is contained in:
tibbi
2018-02-28 16:19:04 +01:00
parent febb166894
commit 60f4244acf
9 changed files with 102 additions and 4 deletions

View File

@ -7,4 +7,8 @@ class Config(context: Context) : BaseConfig(context) {
companion object {
fun newInstance(context: Context) = Config(context)
}
var showSeconds: Boolean
get() = prefs.getBoolean(SHOW_SECONDS, true)
set(showSeconds) = prefs.edit().putBoolean(SHOW_SECONDS, showSeconds).apply()
}