rename snoozeDelay to snoozeTime

This commit is contained in:
tibbi 2018-03-07 14:26:30 +01:00
parent a9b2eb490b
commit 6017a0bcb1
2 changed files with 9 additions and 9 deletions

View file

@ -58,7 +58,7 @@ class SettingsActivity : SimpleActivity() {
setupVibrate() setupVibrate()
setupReminderSound() setupReminderSound()
setupUseSameSnooze() setupUseSameSnooze()
setupSnoozeDelay() setupSnoozeTime()
setupDisplayPastEvents() setupDisplayPastEvents()
setupFontSize() setupFontSize()
updateTextColors(settings_holder) updateTextColors(settings_holder)
@ -316,18 +316,18 @@ class SettingsActivity : SimpleActivity() {
} }
} }
private fun setupSnoozeDelay() { private fun setupSnoozeTime() {
updateSnoozeText() updateSnoozeTime()
settings_snooze_time_holder.setOnClickListener { settings_snooze_time_holder.setOnClickListener {
showPickIntervalDialog(config.snoozeTime, true) { showPickIntervalDialog(config.snoozeTime, true) {
config.snoozeTime = it config.snoozeTime = it
updateSnoozeText() updateSnoozeTime()
} }
} }
} }
private fun updateSnoozeText() { private fun updateSnoozeTime() {
settings_snooze_delay.text = formatMinutesToTimeString(config.snoozeTime) settings_snooze_time.text = formatMinutesToTimeString(config.snoozeTime)
} }
private fun getHoursString(hours: Int) = String.format("%02d:00", hours) private fun getHoursString(hours: Int) = String.format("%02d:00", hours)

View file

@ -284,14 +284,14 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/settings_snooze_delay" android:layout_toLeftOf="@+id/settings_snooze_time"
android:layout_toStartOf="@+id/settings_snooze_delay" android:layout_toStartOf="@+id/settings_snooze_time"
android:paddingLeft="@dimen/medium_margin" android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin" android:paddingRight="@dimen/medium_margin"
android:text="@string/snooze_time"/> android:text="@string/snooze_time"/>
<com.simplemobiletools.commons.views.MyTextView <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/settings_snooze_delay" android:id="@+id/settings_snooze_time"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"