feat: 优化

pull/219/head
kunfei 5 years ago
parent 931314f984
commit 36ce0cbf8b
  1. 5
      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<String>()
return@lazy arrayOf<String>()
}
}

Loading…
Cancel
Save