From de6a7cb8e6620db96b691eb470fc74599feb229e Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 1 Feb 2017 20:42:24 +0100 Subject: [PATCH] add a button for all day events --- .../calendar/activities/EventActivity.kt | 6 ++++++ app/src/main/res/layout/activity_event.xml | 14 ++++++++++++++ app/src/main/res/values-de/strings.xml | 1 + app/src/main/res/values-es-rES/strings.xml | 3 ++- app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values-hi-rIN/strings.xml | 1 + app/src/main/res/values-hu/strings.xml | 1 + app/src/main/res/values-it/strings.xml | 1 + app/src/main/res/values-iw/strings.xml | 1 + app/src/main/res/values-ja/strings.xml | 1 + app/src/main/res/values-pt-rPT/strings.xml | 1 + app/src/main/res/values-ru/strings.xml | 1 + app/src/main/res/values-sv/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 14 files changed, 33 insertions(+), 1 deletion(-) 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 c5637852e..09b96389e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt @@ -69,6 +69,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener { event_end_time.setOnClickListener { setupEndTime() } event_end_checkbox.setOnCheckedChangeListener { compoundButton, isChecked -> endCheckboxChecked(isChecked) } + event_all_day.setOnCheckedChangeListener { compoundButton, isChecked -> toggleAllDay(isChecked) } event_reminder.onItemSelectedListener = object : AdapterView.OnItemSelectedListener { override fun onNothingSelected(p0: AdapterView<*>?) { @@ -78,6 +79,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener { reminderItemSelected() } } + updateTextColors(event_scrollview) } @@ -155,6 +157,10 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener { ) } + fun toggleAllDay(isChecked: Boolean) { + + } + fun endCheckboxChecked(isChecked: Boolean) { hideKeyboard() event_end_date.beVisibleIf(isChecked) diff --git a/app/src/main/res/layout/activity_event.xml b/app/src/main/res/layout/activity_event.xml index 6cfe07b60..928a6eb2d 100644 --- a/app/src/main/res/layout/activity_event.xml +++ b/app/src/main/res/layout/activity_event.xml @@ -1,6 +1,7 @@ @@ -59,6 +60,19 @@ android:text="@string/start" android:textSize="@dimen/day_text_size"/> + + Start Ende (optional) Beschreibung + All-day Woche diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index 036447948..8e86c58de 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -52,10 +52,11 @@ Invalid file format - Título + Título Inicio Fin (opcional) Descripción + All-day Week diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 236cd32e5..a3339ce36 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -56,6 +56,7 @@ Début Fin (optionnel) Description + All-day Week diff --git a/app/src/main/res/values-hi-rIN/strings.xml b/app/src/main/res/values-hi-rIN/strings.xml index cd34f6bca..ec60a4122 100644 --- a/app/src/main/res/values-hi-rIN/strings.xml +++ b/app/src/main/res/values-hi-rIN/strings.xml @@ -56,6 +56,7 @@ प्रारंभ अंत (वैकल्पिक) विवरण + All-day Week diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 003261dd2..70d6ed626 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -56,6 +56,7 @@ Kezdet Vég (nem kötelező) Leírás + All-day Week diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 0934b0eb0..99d5da6b4 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -56,6 +56,7 @@ Inizio Fine (facoltativo) Descrizione + All-day Week diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml index c6dbb4243..28507ba86 100644 --- a/app/src/main/res/values-iw/strings.xml +++ b/app/src/main/res/values-iw/strings.xml @@ -56,6 +56,7 @@ התחלה סוף (אופציונלי) תיאור + All-day שבוע diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index cbd1d8f3a..620f299a6 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -56,6 +56,7 @@ 開始 終了 (任意) 説明 + All-day Week diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 29067f381..39af0cbcb 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -56,6 +56,7 @@ Início Fim (opcional) Descrição + All-day Semana diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 0ef27daf9..c801ac2a9 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -56,6 +56,7 @@ Начало Окончание (необязательно) Описание + All-day Неделя diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index c6cf93400..dd4cfeed6 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -56,6 +56,7 @@ Start Slut (frivillig) Beskrivning + All-day Vecka diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6fc678552..4b85b313c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -56,6 +56,7 @@ Start End (optional) Description + All-day Week