mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-23 12:00:15 +01:00
Fixed variable name
This commit is contained in:
parent
8d3bb674b9
commit
c58f0f3a29
@ -1216,8 +1216,8 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
private fun doDeleteNote(note: Note, deleteFile: Boolean) {
|
||||
ensureBackgroundThread {
|
||||
val currentNodeIndex = mNotes.indexOf(note)
|
||||
val noteToRefresh = mNotes[if (currentNodeIndex > 0) currentNodeIndex - 1 else currentNodeIndex + 1]
|
||||
val currentNoteIndex = mNotes.indexOf(note)
|
||||
val noteToRefresh = mNotes[if (currentNoteIndex > 0) currentNoteIndex - 1 else currentNoteIndex + 1]
|
||||
|
||||
notesDB.deleteNote(note)
|
||||
widgetsDB.deleteNoteWidgets(note.id!!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user