mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
add a toggle for setting Sunday as the first day
This commit is contained in:
@ -24,6 +24,7 @@ class SettingsActivity : SimpleActivity() {
|
||||
setupUseEnglish()
|
||||
setupAvoidWhatsNew()
|
||||
setupPreventPhoneFromSleeping()
|
||||
setupSundayFirst()
|
||||
setupShowSeconds()
|
||||
setupDisplayOtherTimeZones()
|
||||
setupAlarmMaxReminder()
|
||||
@ -75,6 +76,14 @@ class SettingsActivity : SimpleActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupSundayFirst() {
|
||||
settings_sunday_first.isChecked = config.isSundayFirst
|
||||
settings_sunday_first_holder.setOnClickListener {
|
||||
settings_sunday_first.toggle()
|
||||
config.isSundayFirst = settings_sunday_first.isChecked
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupShowSeconds() {
|
||||
settings_show_seconds.isChecked = config.showSeconds
|
||||
settings_show_seconds_holder.setOnClickListener {
|
||||
|
Reference in New Issue
Block a user