limit event title length to 50 chars

This commit is contained in:
tibbi 2017-02-05 20:10:58 +01:00
parent ec9398337f
commit 5e180f7fc1
2 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ class IcsParser {
curEnd = getTimestamp(line.substring(DTEND.length))
} else if (line.startsWith(SUMMARY)) {
curTitle = line.substring(SUMMARY.length)
curTitle = curTitle.substring(0, Math.min(curTitle.length, 50))
} else if (line.startsWith(DESCRIPTION)) {
curDescription = line.substring(DESCRIPTION.length)
} else if (line.startsWith(UID)) {

View File

@ -20,7 +20,7 @@
android:layout_marginTop="@dimen/activity_margin"
android:hint="@string/title"
android:inputType="textCapSentences"
android:maxLength="30"
android:maxLength="50"
android:maxLines="1"
android:minEms="20"
android:textCursorDrawable="@null"