We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d3bb67 commit c58f0f3Copy full SHA for c58f0f3
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt
@@ -1216,8 +1216,8 @@ class MainActivity : SimpleActivity() {
1216
1217
private fun doDeleteNote(note: Note, deleteFile: Boolean) {
1218
ensureBackgroundThread {
1219
- val currentNodeIndex = mNotes.indexOf(note)
1220
- 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]
1221
1222
notesDB.deleteNote(note)
1223
widgetsDB.deleteNoteWidgets(note.id!!)
0 commit comments