Fixes of View Notes from all books Switch is always enabled

This commit is contained in:
MohitMali 2023-07-10 15:58:25 +05:30 committed by Kelson
parent c49d8d8ac3
commit 38d6335860

View File

@ -39,7 +39,7 @@ class NotesFragment : PageFragment() {
override val noItemsString: String by lazy { getString(R.string.no_notes) }
override val switchString: String by lazy { getString(R.string.notes_from_all_books) }
override val switchIsChecked: Boolean = true
override val switchIsChecked: Boolean by lazy { sharedPreferenceUtil.showNotesAllBooks }
override fun inject(baseActivity: BaseActivity) {
baseActivity.cachedComponent.inject(this)