This commit is contained in:
Gouri Panda 2022-12-26 18:14:37 +05:30 committed by Kelson
parent 873f2fd5a0
commit fde53359e5

View File

@ -18,6 +18,7 @@
package org.kiwix.kiwixmobile.core.data
import android.util.Log
import io.reactivex.Completable
import io.reactivex.Flowable
import io.reactivex.Scheduler
@ -102,7 +103,7 @@ class Repository @Inject internal constructor(
override fun clearHistory() = Completable.fromAction {
historyDao.deleteAllHistory()
recentSearchDao.deleteSearchHistory()
}
}.subscribeOn(io)
override fun getBookmarks() = bookmarksDao.bookmarks() as Flowable<List<BookmarkItem>>