From b0317b5609dc2a9a7a0208957b3ffff7565baa14 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Sat, 26 Jun 2021 11:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=88=90html5=E7=9A=84doctyp?= =?UTF-8?q?e,=E8=8A=82=E7=9C=81=E7=A9=BA=E9=97=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/epub/chapter.html | 3 +-- app/src/main/assets/epub/cover.html | 3 +-- app/src/main/assets/epub/intro.html | 3 +-- .../main/java/io/legado/app/ui/book/cache/CacheViewModel.kt | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/main/assets/epub/chapter.html b/app/src/main/assets/epub/chapter.html index 8503c3f97..6067f6649 100644 --- a/app/src/main/assets/epub/chapter.html +++ b/app/src/main/assets/epub/chapter.html @@ -1,6 +1,5 @@ - + Chapter diff --git a/app/src/main/assets/epub/cover.html b/app/src/main/assets/epub/cover.html index 268cc3f85..cb6df6353 100644 --- a/app/src/main/assets/epub/cover.html +++ b/app/src/main/assets/epub/cover.html @@ -1,6 +1,5 @@ - + Cover diff --git a/app/src/main/assets/epub/intro.html b/app/src/main/assets/epub/intro.html index 85eb28a63..5c64026f8 100644 --- a/app/src/main/assets/epub/intro.html +++ b/app/src/main/assets/epub/intro.html @@ -1,6 +1,5 @@ - + Intro diff --git a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt index f89d997c3..81f866866 100644 --- a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt @@ -233,7 +233,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) { } private fun setAssets(doc: DocumentFile, book: Book, epubBook: EpubBook): String { - if(!AppConfig.isGooglePlay) return setAssets(book, epubBook) + if(!(AppConfig.isGooglePlay|| appCtx.packageName.contains("debug",true))) return setAssets(book, epubBook) var contentModel = "" DocumentUtils.getDirDocument(doc, "Asset").let { customPath ->