mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
Fixed lint failure
This commit is contained in:
parent
ec1b6ac9f7
commit
79960d952c
@ -19,17 +19,10 @@
|
|||||||
package org.kiwix.kiwixmobile.core.dao.entities
|
package org.kiwix.kiwixmobile.core.dao.entities
|
||||||
|
|
||||||
import androidx.room.PrimaryKey
|
import androidx.room.PrimaryKey
|
||||||
import org.kiwix.kiwixmobile.core.data.local.entity.RecentSearch
|
|
||||||
|
|
||||||
@androidx.room.Entity
|
@androidx.room.Entity
|
||||||
data class RecentSearchRoomEntity(
|
data class RecentSearchRoomEntity(
|
||||||
@PrimaryKey var id: Long = 0L,
|
@PrimaryKey var id: Long = 0L,
|
||||||
val searchTerm: String,
|
val searchTerm: String,
|
||||||
val zimId: String
|
val zimId: String
|
||||||
) {
|
)
|
||||||
constructor(recentSearch: RecentSearch) : this(
|
|
||||||
0,
|
|
||||||
recentSearch.searchString,
|
|
||||||
recentSearch.zimID
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
@ -19,11 +19,9 @@ package org.kiwix.kiwixmobile.core.page.bookmark.viewmodel.effects
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.lifecycle.lifecycleScope
|
|
||||||
import io.reactivex.processors.PublishProcessor
|
import io.reactivex.processors.PublishProcessor
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import org.kiwix.kiwixmobile.core.base.SideEffect
|
import org.kiwix.kiwixmobile.core.base.SideEffect
|
||||||
import org.kiwix.kiwixmobile.core.dao.BasePageDao
|
|
||||||
import org.kiwix.kiwixmobile.core.dao.PageDao
|
import org.kiwix.kiwixmobile.core.dao.PageDao
|
||||||
import org.kiwix.kiwixmobile.core.extensions.ActivityExtensions.cachedComponent
|
import org.kiwix.kiwixmobile.core.extensions.ActivityExtensions.cachedComponent
|
||||||
import org.kiwix.kiwixmobile.core.page.bookmark.adapter.BookmarkItem
|
import org.kiwix.kiwixmobile.core.page.bookmark.adapter.BookmarkItem
|
||||||
|
@ -20,13 +20,11 @@ package org.kiwix.kiwixmobile.core.page.notes.viewmodel.effects
|
|||||||
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.lifecycle.lifecycleScope
|
|
||||||
import io.reactivex.processors.PublishProcessor
|
import io.reactivex.processors.PublishProcessor
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.kiwix.kiwixmobile.core.base.SideEffect
|
import org.kiwix.kiwixmobile.core.base.SideEffect
|
||||||
import org.kiwix.kiwixmobile.core.dao.BasePageDao
|
|
||||||
import org.kiwix.kiwixmobile.core.dao.PageDao
|
import org.kiwix.kiwixmobile.core.dao.PageDao
|
||||||
import org.kiwix.kiwixmobile.core.extensions.ActivityExtensions.cachedComponent
|
import org.kiwix.kiwixmobile.core.extensions.ActivityExtensions.cachedComponent
|
||||||
import org.kiwix.kiwixmobile.core.page.notes.viewmodel.NotesState
|
import org.kiwix.kiwixmobile.core.page.notes.viewmodel.NotesState
|
||||||
|
Loading…
x
Reference in New Issue
Block a user