From ccc3a377926784990f03783a7b88100a3be87bae Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 15 May 2017 22:46:51 +0200 Subject: [PATCH] increase the allowed event title length to 80 --- .../com/simplemobiletools/calendar/helpers/IcsImporter.kt | 2 +- app/src/main/res/layout/activity_event.xml | 2 +- app/src/main/res/layout/dialog_event_type.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt index 63dd3b545..2e4eccdea 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsImporter.kt @@ -168,7 +168,7 @@ class IcsImporter { return if (title.startsWith(";") && title.contains(":")) { title.substring(title.lastIndexOf(':') + 1) } else { - title.substring(1, Math.min(title.length, 50)) + title.substring(1, Math.min(title.length, 80)) } } diff --git a/app/src/main/res/layout/activity_event.xml b/app/src/main/res/layout/activity_event.xml index cdc5e5f2f..6cc92b70d 100644 --- a/app/src/main/res/layout/activity_event.xml +++ b/app/src/main/res/layout/activity_event.xml @@ -21,7 +21,7 @@ android:layout_marginTop="@dimen/activity_margin" android:hint="@string/title" android:inputType="textCapSentences" - android:maxLength="50" + android:maxLength="80" android:maxLines="1" android:minEms="20" android:textCursorDrawable="@null" diff --git a/app/src/main/res/layout/dialog_event_type.xml b/app/src/main/res/layout/dialog_event_type.xml index 661e3f412..ac3c3deed 100644 --- a/app/src/main/res/layout/dialog_event_type.xml +++ b/app/src/main/res/layout/dialog_event_type.xml @@ -23,7 +23,7 @@ android:layout_marginLeft="@dimen/small_margin" android:layout_marginStart="@dimen/small_margin" android:inputType="textCapSentences" - android:maxLength="50" + android:maxLength="80" android:singleLine="true" android:textCursorDrawable="@null"/>