Skip to content

Commit 53340c9

Browse files
committed
removing a redundant variable
1 parent aa25f23 commit 53340c9

File tree

1 file changed

+1
-2
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/activities

1 file changed

+1
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,14 +479,13 @@ class MainActivity : SimpleActivity() {
479479

480480
RadioGroupDialog(this, items) {
481481
val syncFile = it as Int == EXPORT_FILE_SYNC
482-
val storedValue = mCurrentNote.getNoteStoredValue() ?: ""
483482
tryExportNoteValueToFile(exportPath, textToExport, true) {
484483
if (syncFile) {
485484
mCurrentNote.path = exportPath
486485
mCurrentNote.value = ""
487486
} else {
488487
mCurrentNote.path = ""
489-
mCurrentNote.value = storedValue
488+
mCurrentNote.value = textToExport
490489
}
491490

492491
NotesHelper(this).insertOrUpdateNote(mCurrentNote)

0 commit comments

Comments
 (0)