limit event title length to 50 chars
This commit is contained in:
parent
ec9398337f
commit
5e180f7fc1
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue