pull/1470/head
gedoor 3 years ago
parent 87265c7818
commit 14716ffd86
  1. 2
      app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt

@ -29,7 +29,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
var durChapterIndex = 0 var durChapterIndex = 0
var inBookshelf = false var inBookshelf = false
var bookSource: BookSource? = null var bookSource: BookSource? = null
var changeSourceCoroutine: Coroutine<*>? = null private var changeSourceCoroutine: Coroutine<*>? = null
fun initData(intent: Intent) { fun initData(intent: Intent) {
execute { execute {

@ -32,7 +32,7 @@ import kotlinx.coroutines.ensureActive
class ReadBookViewModel(application: Application) : BaseViewModel(application) { class ReadBookViewModel(application: Application) : BaseViewModel(application) {
var isInitFinish = false var isInitFinish = false
var searchContentQuery = "" var searchContentQuery = ""
var changeSourceCoroutine: Coroutine<*>? = null private var changeSourceCoroutine: Coroutine<*>? = null
fun initData(intent: Intent) { fun initData(intent: Intent) {
execute { execute {

Loading…
Cancel
Save