mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
limit event title length to 50 chars
This commit is contained in:
@ -49,6 +49,7 @@ class IcsParser {
|
|||||||
curEnd = getTimestamp(line.substring(DTEND.length))
|
curEnd = getTimestamp(line.substring(DTEND.length))
|
||||||
} else if (line.startsWith(SUMMARY)) {
|
} else if (line.startsWith(SUMMARY)) {
|
||||||
curTitle = line.substring(SUMMARY.length)
|
curTitle = line.substring(SUMMARY.length)
|
||||||
|
curTitle = curTitle.substring(0, Math.min(curTitle.length, 50))
|
||||||
} else if (line.startsWith(DESCRIPTION)) {
|
} else if (line.startsWith(DESCRIPTION)) {
|
||||||
curDescription = line.substring(DESCRIPTION.length)
|
curDescription = line.substring(DESCRIPTION.length)
|
||||||
} else if (line.startsWith(UID)) {
|
} else if (line.startsWith(UID)) {
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
android:layout_marginTop="@dimen/activity_margin"
|
android:layout_marginTop="@dimen/activity_margin"
|
||||||
android:hint="@string/title"
|
android:hint="@string/title"
|
||||||
android:inputType="textCapSentences"
|
android:inputType="textCapSentences"
|
||||||
android:maxLength="30"
|
android:maxLength="50"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:minEms="20"
|
android:minEms="20"
|
||||||
android:textCursorDrawable="@null"
|
android:textCursorDrawable="@null"
|
||||||
|
Reference in New Issue
Block a user