Skip to content

Commit c58f0f3

Browse files
committed
Fixed variable name
1 parent 8d3bb67 commit c58f0f3

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,8 +1216,8 @@ class MainActivity : SimpleActivity() {
12161216

12171217
private fun doDeleteNote(note: Note, deleteFile: Boolean) {
12181218
ensureBackgroundThread {
1219-
val currentNodeIndex = mNotes.indexOf(note)
1220-
val noteToRefresh = mNotes[if (currentNodeIndex > 0) currentNodeIndex - 1 else currentNodeIndex + 1]
1219+
val currentNoteIndex = mNotes.indexOf(note)
1220+
val noteToRefresh = mNotes[if (currentNoteIndex > 0) currentNoteIndex - 1 else currentNoteIndex + 1]
12211221

12221222
notesDB.deleteNote(note)
12231223
widgetsDB.deleteNoteWidgets(note.id!!)

0 commit comments

Comments
 (0)