mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-02 15:26:49 +01:00
removing a redundant variable
This commit is contained in:
parent
aa25f23c38
commit
53340c9972
@ -479,14 +479,13 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
RadioGroupDialog(this, items) {
|
||||
val syncFile = it as Int == EXPORT_FILE_SYNC
|
||||
val storedValue = mCurrentNote.getNoteStoredValue() ?: ""
|
||||
tryExportNoteValueToFile(exportPath, textToExport, true) {
|
||||
if (syncFile) {
|
||||
mCurrentNote.path = exportPath
|
||||
mCurrentNote.value = ""
|
||||
} else {
|
||||
mCurrentNote.path = ""
|
||||
mCurrentNote.value = storedValue
|
||||
mCurrentNote.value = textToExport
|
||||
}
|
||||
|
||||
NotesHelper(this).insertOrUpdateNote(mCurrentNote)
|
||||
|
Loading…
x
Reference in New Issue
Block a user