Skip to content

Commit

Permalink
Correctly name DownloadLimit members
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Sep 4, 2024
1 parent 7913c62 commit a4b7fa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
package com.infomaniak.multiplatform_swisstransfer.common.models

enum class DownloadLimit(val value: String) {
TWOHUNDREDFIFTY("250"),
ONEHUNDRED("100"),
TWO_HUNDRED_FIFTY("250"),
ONE_HUNDRED("100"),
TWENTY("20"),
ONE("1"),
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AppSettingsDB : RealmObject, AppSettings {
_validityPeriod = value.value
}

private var _downloadLimit: String = DownloadLimit.TWOHUNDREDFIFTY.value
private var _downloadLimit: String = DownloadLimit.TWO_HUNDRED_FIFTY.value
override var downloadLimit: DownloadLimit
get() = DownloadLimit.entries.find { it.value == _downloadLimit } ?: DEFAULT_DOWNLOAD_LIMIT
set(value) {
Expand All @@ -56,7 +56,7 @@ class AppSettingsDB : RealmObject, AppSettings {
companion object {
private val DEFAULT_THEME = Theme.SYSTEM
private val DEFAULT_VALIDITY_PERIOD = ValidityPeriod.THIRTY
private val DEFAULT_DOWNLOAD_LIMIT = DownloadLimit.TWOHUNDREDFIFTY
private val DEFAULT_DOWNLOAD_LIMIT = DownloadLimit.TWO_HUNDRED_FIFTY
private val DEFAULT_EMAIL_LANGUAGE = EmailLanguage.ENGLISH
}
}

0 comments on commit a4b7fa0

Please sign in to comment.