From 6017a0bcb1a5fa31ab4703b080807e01888a180a Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 7 Mar 2018 14:26:30 +0100 Subject: [PATCH] rename snoozeDelay to snoozeTime --- .../calendar/activities/SettingsActivity.kt | 12 ++++++------ app/src/main/res/layout/activity_settings.xml | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt index 574787ee9..20c1bfa54 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt @@ -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) diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index fd09879ae..6fb597e5d 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -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"/>