pull/36/head
kunfei 5 years ago
parent 8d7bdb3ad1
commit 423cff9d95
  1. 2
      app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt
  2. 2
      app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt

@ -13,7 +13,7 @@ import kotlinx.coroutines.delay
import java.util.concurrent.Executors
class SearchViewModel(application: Application) : BaseViewModel(application) {
private var searchPool = Executors.newFixedThreadPool(99).asCoroutineDispatcher()
private var searchPool = Executors.newFixedThreadPool(16).asCoroutineDispatcher()
private var task: Coroutine<*>? = null
var searchKey: String = ""
var startTime: Long = 0

@ -19,7 +19,7 @@ import org.jetbrains.anko.debug
import java.util.concurrent.Executors
class ChangeSourceViewModel(application: Application) : BaseViewModel(application) {
private var searchPool = Executors.newFixedThreadPool(99).asCoroutineDispatcher()
private var searchPool = Executors.newFixedThreadPool(16).asCoroutineDispatcher()
var callBack: CallBack? = null
val searchStateData = MutableLiveData<Boolean>()
var name: String = ""

Loading…
Cancel
Save