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:
SUPYROW 2023-03-01 14:14:46 +01:00 committed by GitHub
parent fd61c19995
commit acaa5910a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
}