record2021
gedoor 3 years ago
parent f0dff993bc
commit 20305b5ff3
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt

@ -6,6 +6,7 @@ import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import io.legado.app.R
import io.legado.app.base.BaseViewModel
import io.legado.app.constant.AppLog
import io.legado.app.constant.EventBus
import io.legado.app.data.appDb
import io.legado.app.data.entities.Book
@ -127,7 +128,10 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
is SecurityException -> {
permissionDenialLiveData.postValue(1)
}
else -> ReadBook.upMsg("LoadTocError:${it.localizedMessage}")
else -> {
AppLog.put("LoadTocError:${it.localizedMessage}", it)
ReadBook.upMsg("LoadTocError:${it.localizedMessage}")
}
}
}
} else {

Loading…
Cancel
Save