private fun editNote(noteId: Int) { hideSoftKeyboard() val intent = Intent(this@MainActivity, NoteActivity::class.java) intent.flags = Intent.FLAG_ACTIVITY_CLEAR_TASK intent.putExtra("id", noteId.toString()) startActivity(intent) }
Method used to enter note edition mode