pull/36/head
kunfei 5 years ago
parent 3e808b12dc
commit 97c8fa5953
  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

@ -9,7 +9,6 @@ import io.legado.app.help.coroutine.Coroutine
import io.legado.app.model.WebBook import io.legado.app.model.WebBook
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.asCoroutineDispatcher import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.delay
import java.util.concurrent.Executors import java.util.concurrent.Executors
class SearchViewModel(application: Application) : BaseViewModel(application) { class SearchViewModel(application: Application) : BaseViewModel(application) {
@ -49,7 +48,6 @@ class SearchViewModel(application: Application) : BaseViewModel(application) {
} }
} }
} }
delay(100)//每隔100毫秒搜索一个书源
} }
} }

@ -13,7 +13,6 @@ import io.legado.app.model.WebBook
import kotlinx.coroutines.Dispatchers.IO import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dispatchers.Main import kotlinx.coroutines.Dispatchers.Main
import kotlinx.coroutines.asCoroutineDispatcher import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.delay
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.jetbrains.anko.debug import org.jetbrains.anko.debug
import java.util.concurrent.Executors import java.util.concurrent.Executors
@ -73,7 +72,6 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio
} }
} }
} }
delay(100)
} }
} }

Loading…
Cancel
Save