Merge pull request #472 from Aga-C/fix-search-hiding

Fixed search button not hiding for checklist
This commit is contained in:
Tibor Kaputa
2021-11-17 22:39:41 +01:00
committed by GitHub

View File

@ -266,7 +266,7 @@ class MainActivity : SimpleActivity() {
}
}
private fun isCurrentItemChecklist() = mAdapter?.isChecklistFragment(view_pager.currentItem) ?: false
private fun isCurrentItemChecklist() = if (this::mCurrentNote.isInitialized) mCurrentNote.type == NoteType.TYPE_CHECKLIST.value else false
private fun checkIntents(intent: Intent) {
intent.apply {