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

View file

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