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 3, 2024
1 parent c2609a1 commit 7b0d102
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 @@ -19,8 +19,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 @@ -40,7 +40,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 @@ -57,7 +57,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 7b0d102

Please sign in to comment.