Naming cleanup
This commit is contained in:
parent
871abe54ec
commit
113f51df94
2 changed files with 6 additions and 6 deletions
|
@ -270,7 +270,7 @@ object K9 : KoinComponent {
|
|||
@JvmStatic
|
||||
var isAutoFitWidth: Boolean = false
|
||||
|
||||
var quietTimeEnabled = false
|
||||
var isQuietTimeEnabled = false
|
||||
var isNotificationDuringQuietTimeEnabled = true
|
||||
var quietTimeStarts: String? = null
|
||||
var quietTimeEnds: String? = null
|
||||
|
@ -336,7 +336,7 @@ object K9 : KoinComponent {
|
|||
|
||||
val isQuietTime: Boolean
|
||||
get() {
|
||||
if (!quietTimeEnabled) {
|
||||
if (!isQuietTimeEnabled) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
@ -408,7 +408,7 @@ object K9 : KoinComponent {
|
|||
|
||||
isAutoFitWidth = storage.getBoolean("autofitWidth", true)
|
||||
|
||||
quietTimeEnabled = storage.getBoolean("quietTimeEnabled", false)
|
||||
isQuietTimeEnabled = storage.getBoolean("quietTimeEnabled", false)
|
||||
isNotificationDuringQuietTimeEnabled = storage.getBoolean("notificationDuringQuietTimeEnabled", true)
|
||||
quietTimeStarts = storage.getString("quietTimeStarts", "21:00")
|
||||
quietTimeEnds = storage.getString("quietTimeEnds", "7:00")
|
||||
|
@ -520,7 +520,7 @@ object K9 : KoinComponent {
|
|||
editor.putBoolean("useVolumeKeysForNavigation", isUseVolumeKeysForNavigation)
|
||||
editor.putBoolean("useVolumeKeysForListNavigation", isUseVolumeKeysForListNavigation)
|
||||
editor.putBoolean("autofitWidth", isAutoFitWidth)
|
||||
editor.putBoolean("quietTimeEnabled", quietTimeEnabled)
|
||||
editor.putBoolean("quietTimeEnabled", isQuietTimeEnabled)
|
||||
editor.putBoolean("notificationDuringQuietTimeEnabled", isNotificationDuringQuietTimeEnabled)
|
||||
editor.putString("quietTimeStarts", quietTimeStarts)
|
||||
editor.putString("quietTimeEnds", quietTimeEnds)
|
||||
|
|
|
@ -39,7 +39,7 @@ class GeneralSettingsDataStore(
|
|||
"gestures" -> K9.isGesturesEnabled
|
||||
"messageview_return_to_list" -> K9.isMessageViewReturnToList
|
||||
"messageview_show_next" -> K9.isMessageViewShowNext
|
||||
"quiet_time_enabled" -> K9.quietTimeEnabled
|
||||
"quiet_time_enabled" -> K9.isQuietTimeEnabled
|
||||
"disable_notifications_during_quiet_time" -> !K9.isNotificationDuringQuietTimeEnabled
|
||||
"privacy_hide_useragent" -> K9.isHideUserAgent
|
||||
"privacy_hide_timezone" -> K9.isHideTimeZone
|
||||
|
@ -73,7 +73,7 @@ class GeneralSettingsDataStore(
|
|||
"gestures" -> K9.isGesturesEnabled = value
|
||||
"messageview_return_to_list" -> K9.isMessageViewReturnToList = value
|
||||
"messageview_show_next" -> K9.isMessageViewShowNext = value
|
||||
"quiet_time_enabled" -> K9.quietTimeEnabled = value
|
||||
"quiet_time_enabled" -> K9.isQuietTimeEnabled = value
|
||||
"disable_notifications_during_quiet_time" -> K9.isNotificationDuringQuietTimeEnabled = !value
|
||||
"privacy_hide_useragent" -> K9.isHideUserAgent = value
|
||||
"privacy_hide_timezone" -> K9.isHideTimeZone = value
|
||||
|
|
Loading…
Reference in a new issue