Skip to content

Commit

Permalink
Refactor: Revised maximum and minimum size constraints for clock display
Browse files Browse the repository at this point in the history
  • Loading branch information
HeCodes2Much committed Apr 16, 2024
1 parent bdc3f91 commit 4b35505
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 @@ -31,8 +31,8 @@ object Constants {
const val BACKUP_WRITE = 1
const val BACKUP_READ = 2

const val CLOCK_SIZE_MIN = 15
const val CLOCK_SIZE_MAX = 50
const val CLOCK_SIZE_MIN = 20
const val CLOCK_SIZE_MAX = 70

const val TEXT_MARGIN_MIN = 0
const val TEXT_MARGIN_MAX = 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ class Prefs(val context: Context) {
var clockSize: Int
get() {
return try {
prefs.getInt(CLOCK_SIZE_TEXT, 18)
prefs.getInt(CLOCK_SIZE_TEXT, 42)
} catch (_: Exception) {
18
42
}
}
set(value) = prefs.edit().putInt(CLOCK_SIZE_TEXT, value).apply()
Expand Down

0 comments on commit 4b35505

Please sign in to comment.