mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-09 19:10:51 +00:00
优化:避免 Room 主线程查询缓存 #345
This commit is contained in:
parent
2eda4f567b
commit
7f4794e9ae
@ -4,7 +4,6 @@ import androidx.paging.PagingSource
|
|||||||
import androidx.room.*
|
import androidx.room.*
|
||||||
import androidx.sqlite.db.SupportSQLiteQuery
|
import androidx.sqlite.db.SupportSQLiteQuery
|
||||||
import com.idormy.sms.forwarder.database.entity.Frpc
|
import com.idormy.sms.forwarder.database.entity.Frpc
|
||||||
import com.idormy.sms.forwarder.database.entity.Sender
|
|
||||||
import io.reactivex.Single
|
import io.reactivex.Single
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
|
@ -4,7 +4,6 @@ import androidx.annotation.WorkerThread
|
|||||||
import androidx.sqlite.db.SimpleSQLiteQuery
|
import androidx.sqlite.db.SimpleSQLiteQuery
|
||||||
import com.idormy.sms.forwarder.database.dao.FrpcDao
|
import com.idormy.sms.forwarder.database.dao.FrpcDao
|
||||||
import com.idormy.sms.forwarder.database.entity.Frpc
|
import com.idormy.sms.forwarder.database.entity.Frpc
|
||||||
import com.idormy.sms.forwarder.database.entity.Sender
|
|
||||||
|
|
||||||
class FrpcRepository(
|
class FrpcRepository(
|
||||||
private val frpcDao: FrpcDao,
|
private val frpcDao: FrpcDao,
|
||||||
|
@ -4,7 +4,6 @@ import androidx.annotation.WorkerThread
|
|||||||
import androidx.sqlite.db.SimpleSQLiteQuery
|
import androidx.sqlite.db.SimpleSQLiteQuery
|
||||||
import com.idormy.sms.forwarder.database.dao.RuleDao
|
import com.idormy.sms.forwarder.database.dao.RuleDao
|
||||||
import com.idormy.sms.forwarder.database.entity.Rule
|
import com.idormy.sms.forwarder.database.entity.Rule
|
||||||
import com.idormy.sms.forwarder.database.entity.Sender
|
|
||||||
|
|
||||||
class RuleRepository(
|
class RuleRepository(
|
||||||
private val ruleDao: RuleDao,
|
private val ruleDao: RuleDao,
|
||||||
|
Loading…
Reference in New Issue
Block a user