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
commit 01d429c35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {