mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-06 03:31:05 +02: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) {
|
private fun doDeleteNote(note: Note, deleteFile: Boolean) {
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
val currentNodeIndex = mNotes.indexOf(note)
|
val currentNoteIndex = mNotes.indexOf(note)
|
||||||
val noteToRefresh = mNotes[if (currentNodeIndex > 0) currentNodeIndex - 1 else currentNodeIndex + 1]
|
val noteToRefresh = mNotes[if (currentNoteIndex > 0) currentNoteIndex - 1 else currentNoteIndex + 1]
|
||||||
|
|
||||||
notesDB.deleteNote(note)
|
notesDB.deleteNote(note)
|
||||||
widgetsDB.deleteNoteWidgets(note.id!!)
|
widgetsDB.deleteNoteWidgets(note.id!!)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user