add flag_all_day to imported events only when appropriate
This commit is contained in:
parent
68cfefe061
commit
b6806dfbe2
|
@ -118,8 +118,10 @@ class IcsImporter {
|
||||||
private fun getTimestamp(fullString: String): Int {
|
private fun getTimestamp(fullString: String): Int {
|
||||||
try {
|
try {
|
||||||
return if (fullString.startsWith(';')) {
|
return if (fullString.startsWith(';')) {
|
||||||
curFlags = curFlags or FLAG_ALL_DAY
|
|
||||||
val value = fullString.substring(fullString.lastIndexOf(':') + 1)
|
val value = fullString.substring(fullString.lastIndexOf(':') + 1)
|
||||||
|
if (!value.contains("T"))
|
||||||
|
curFlags = curFlags or FLAG_ALL_DAY
|
||||||
|
|
||||||
parseDateTimeValue(value)
|
parseDateTimeValue(value)
|
||||||
} else {
|
} else {
|
||||||
parseDateTimeValue(fullString.substring(1))
|
parseDateTimeValue(fullString.substring(1))
|
||||||
|
|
Loading…
Reference in New Issue