From 36ce0cbf8bc8c4fd814487b5d04c2d629e0f9e0b Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 14 May 2020 20:00:02 +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 | 5 +++-- 1 file changed, 3 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 db3020824..4cd1ca831 100644 --- a/app/src/main/java/io/legado/app/help/SourceHelp.kt +++ b/app/src/main/java/io/legado/app/help/SourceHelp.kt @@ -13,9 +13,10 @@ object SourceHelp { private val handler = Handler(Looper.getMainLooper()) private val list18Plus by lazy { try { - String(App.INSTANCE.assets.open("18PlusList.txt").readBytes()).splitNotBlank("\n") + return@lazy String(App.INSTANCE.assets.open("18PlusList.txt").readBytes()) + .splitNotBlank("\n") } catch (e: Exception) { - arrayOf() + return@lazy arrayOf() } }