From 55a6cd6f354d76d0abb1892befd6c5abee951641 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 2 Nov 2016 19:34:15 +0100 Subject: [PATCH] couple UI changes --- .../calendar/activities/EventActivity.kt | 4 +- .../calendar/activities/SettingsActivity.kt | 1 + app/src/main/res/layout/activity_event.xml | 61 ++++++++++--------- app/src/main/res/layout/activity_settings.xml | 37 ++++++----- 4 files changed, 51 insertions(+), 52 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt index a2c60bd66..0eb00548f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt @@ -186,9 +186,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventsListener { } fun toggleCustomReminderVisibility(show: Boolean) { - custom_reminder_other_period.beVisibleIf(show) - custom_reminder_other_val.beVisibleIf(show) - custom_reminder_value.beVisibleIf(show) + custom_reminder_holder.beVisibleIf(show) } override fun onCreateOptionsMenu(menu: Menu): Boolean { 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 9ac17a06f..798710ad6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/SettingsActivity.kt @@ -89,6 +89,7 @@ class SettingsActivity : SimpleActivity() { } mConfig.defaultReminderMinutes = Integer.valueOf(value) * multiplier toast(R.string.reminder_saved) + hideKeyboard() } private fun setupReminderPeriod(mins: Int) { diff --git a/app/src/main/res/layout/activity_event.xml b/app/src/main/res/layout/activity_event.xml index 2603d5a80..f72ec463a 100644 --- a/app/src/main/res/layout/activity_event.xml +++ b/app/src/main/res/layout/activity_event.xml @@ -127,46 +127,47 @@ android:entries="@array/reminders" android:padding="@dimen/activity_margin"/> - + android:orientation="horizontal" + android:visibility="gone"> - + - + + + + diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index a90df1123..a61cf4145 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -114,13 +114,14 @@ - + +