mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
Update IcsExporter.kt
on the emulator, this works. and DESCRIPTION is correct in the file. from MY tests. in helpers/IcsExporter.kt line 90: writeLn("$DESCRIPTION_EXPORT$reminderLabel") line 121: out.writeLn("$DESCRIPTION_EXPORT$substring") in helpers/Constants.kt add const val DESCRIPTION_EXPORT = "DESCRIPTION:" on the actual phone. no dice. i get an export file with 0 bytes. emulator works great, i think i'll just use the emulator instead. i don't know what to make of this now. any ideas, on why my phone and probably many other will not work correctly? or is my phone the problem?? not sure what to work on. let me know your findings, please?
This commit is contained in:
parent
fd61c19995
commit
acaa5910a6
@ -87,7 +87,7 @@ class IcsExporter(private val activity: BaseSimpleActivity) {
|
||||
val reminder = it
|
||||
out.apply {
|
||||
writeLn(BEGIN_ALARM)
|
||||
writeLn("$DESCRIPTION$reminderLabel")
|
||||
writeLn("$DESCRIPTION_EXPORT$reminderLabel")
|
||||
if (reminder.type == REMINDER_NOTIFICATION) {
|
||||
writeLn("$ACTION$DISPLAY")
|
||||
} else {
|
||||
@ -118,7 +118,7 @@ class IcsExporter(private val activity: BaseSimpleActivity) {
|
||||
while (index < description.length) {
|
||||
val substring = description.substring(index, Math.min(index + MAX_LINE_LENGTH, description.length))
|
||||
if (isFirstLine) {
|
||||
out.writeLn("$DESCRIPTION$substring")
|
||||
out.writeLn("$DESCRIPTION_EXPORT$substring")
|
||||
} else {
|
||||
out.writeLn("\t$substring")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user