Merge pull request #3449 from kiwix/Issue#3448

Fixes of View Notes from all books Switch is always enabled
This commit is contained in:
Kelson 2023-07-19 07:00:45 +02:00 committed by GitHub
commit 73fe388514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)