From acaa5910a6ef9956bc3649dcbb990ef1e9717772 Mon Sep 17 00:00:00 2001 From: SUPYROW Date: Wed, 1 Mar 2023 14:14:46 +0100 Subject: [PATCH] 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? --- .../com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt index 1c4969b8b..7f4673268 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt @@ -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") }