mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -04:00
Small Bug fix
This commit is contained in:
parent
715e5e6f87
commit
f285aee227
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
package org.kiwix.kiwixmobile.core.dao
|
package org.kiwix.kiwixmobile.core.dao
|
||||||
|
|
||||||
|
import android.util.Log
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import io.objectbox.Box
|
import io.objectbox.Box
|
||||||
@ -78,7 +79,7 @@ abstract class NewRecentSearchRoomDao {
|
|||||||
val searchRoomEntityList = box.all
|
val searchRoomEntityList = box.all
|
||||||
searchRoomEntityList.forEach {
|
searchRoomEntityList.forEach {
|
||||||
CoroutineScope(Dispatchers.IO).launch {
|
CoroutineScope(Dispatchers.IO).launch {
|
||||||
saveSearch(it.searchTerm, it.id.toString())
|
saveSearch(it.searchTerm, it.zimId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user