properly handle password protection of menu items

This commit is contained in:
tibbi
2021-05-20 23:12:19 +02:00
parent 81c6da22d4
commit 0f5456086e
5 changed files with 32 additions and 17 deletions

View File

@ -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)