From 20305b5ff3e62bfdee67dd3785b76a467d9bd145 Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 3 Jan 2022 20:42:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/read/ReadBookViewModel.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt index d4312e82b..af2b146fe 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt +++ b/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 {