mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
properly handle password protection of menu items
This commit is contained in:
@ -45,6 +45,8 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity
|
||||
}
|
||||
}
|
||||
|
||||
fun getFragment(position: Int) = fragments[position]
|
||||
|
||||
fun isChecklistFragment(position: Int): Boolean = (fragments[position] is ChecklistFragment)
|
||||
|
||||
fun textFragment(position: Int): TextFragment? = (fragments[position] as? TextFragment)
|
||||
|
Reference in New Issue
Block a user