From d75748a57f2ed7a0f79ab36904898af905002082 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 14 May 2020 19:31:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/SourceHelp.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/SourceHelp.kt b/app/src/main/java/io/legado/app/help/SourceHelp.kt index 14f06c55c..cfc3f3b10 100644 --- a/app/src/main/java/io/legado/app/help/SourceHelp.kt +++ b/app/src/main/java/io/legado/app/help/SourceHelp.kt @@ -11,11 +11,11 @@ import org.jetbrains.anko.toast object SourceHelp { private val handler = Handler(Looper.getMainLooper()) - private val list18Plus: Array by lazy { + private val list18Plus by lazy { try { String(App.INSTANCE.assets.open("18PlusList.txt").readBytes()).splitNotBlank("\n") } catch (e: Exception) { - arrayOf() + arrayOf() } }