pull/2026/head
kunfei 2 years ago
parent d8dec202e9
commit 124f8867ae
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt
  2. 3
      app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt

@ -68,7 +68,9 @@ import io.legado.app.utils.*
import kotlinx.coroutines.* import kotlinx.coroutines.*
import kotlinx.coroutines.Dispatchers.IO import kotlinx.coroutines.Dispatchers.IO
/**
* 阅读界面
*/
class ReadBookActivity : BaseReadBookActivity(), class ReadBookActivity : BaseReadBookActivity(),
View.OnTouchListener, View.OnTouchListener,
ReadView.CallBack, ReadView.CallBack,

@ -33,6 +33,9 @@ import io.legado.app.utils.toStringArray
import io.legado.app.utils.toastOnUi import io.legado.app.utils.toastOnUi
import kotlinx.coroutines.Dispatchers.IO import kotlinx.coroutines.Dispatchers.IO
/**
* 阅读界面数据处理
*/
class ReadBookViewModel(application: Application) : BaseViewModel(application) { class ReadBookViewModel(application: Application) : BaseViewModel(application) {
val permissionDenialLiveData = MutableLiveData<Int>() val permissionDenialLiveData = MutableLiveData<Int>()
var isInitFinish = false var isInitFinish = false

Loading…
Cancel
Save