mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-11 09:20:53 +01:00
replace "\," with "," at importing events
This commit is contained in:
parent
4d60ed186f
commit
73dacba546
@ -85,9 +85,9 @@ class IcsImporter(val activity: SimpleActivity) {
|
|||||||
curEnd = curStart + Parser().parseDurationSeconds(duration)
|
curEnd = curStart + Parser().parseDurationSeconds(duration)
|
||||||
} else if (line.startsWith(SUMMARY) && !isNotificationDescription) {
|
} else if (line.startsWith(SUMMARY) && !isNotificationDescription) {
|
||||||
curTitle = line.substring(SUMMARY.length)
|
curTitle = line.substring(SUMMARY.length)
|
||||||
curTitle = getTitle(curTitle).replace("\\n", "\n")
|
curTitle = getTitle(curTitle).replace("\\n", "\n").replace("\\,", ",")
|
||||||
} else if (line.startsWith(DESCRIPTION) && !isNotificationDescription) {
|
} else if (line.startsWith(DESCRIPTION) && !isNotificationDescription) {
|
||||||
curDescription = line.substring(DESCRIPTION.length).replace("\\n", "\n")
|
curDescription = line.substring(DESCRIPTION.length).replace("\\n", "\n").replace("\\,", ",")
|
||||||
isDescription = true
|
isDescription = true
|
||||||
} else if (line.startsWith(UID)) {
|
} else if (line.startsWith(UID)) {
|
||||||
curImportId = line.substring(UID.length).trim()
|
curImportId = line.substring(UID.length).trim()
|
||||||
@ -119,7 +119,7 @@ class IcsImporter(val activity: SimpleActivity) {
|
|||||||
|
|
||||||
curRepeatExceptions.add(getTimestamp(value))
|
curRepeatExceptions.add(getTimestamp(value))
|
||||||
} else if (line.startsWith(LOCATION)) {
|
} else if (line.startsWith(LOCATION)) {
|
||||||
curLocation = line.substring(LOCATION.length)
|
curLocation = line.substring(LOCATION.length).replace("\\,", ",")
|
||||||
} else if (line == END_ALARM) {
|
} else if (line == END_ALARM) {
|
||||||
if (isProperReminderAction && curReminderTriggerMinutes != -1) {
|
if (isProperReminderAction && curReminderTriggerMinutes != -1) {
|
||||||
curReminderMinutes.add(curReminderTriggerMinutes)
|
curReminderMinutes.add(curReminderTriggerMinutes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user