feat: 优化

pull/219/head
kunfei 5 years ago
parent adc8ddc4f3
commit d75748a57f
  1. 4
      app/src/main/java/io/legado/app/help/SourceHelp.kt

@ -11,11 +11,11 @@ import org.jetbrains.anko.toast
object SourceHelp { object SourceHelp {
private val handler = Handler(Looper.getMainLooper()) private val handler = Handler(Looper.getMainLooper())
private val list18Plus: Array<String> by lazy { private val list18Plus by lazy {
try { try {
String(App.INSTANCE.assets.open("18PlusList.txt").readBytes()).splitNotBlank("\n") String(App.INSTANCE.assets.open("18PlusList.txt").readBytes()).splitNotBlank("\n")
} catch (e: Exception) { } catch (e: Exception) {
arrayOf() arrayOf<String>()
} }
} }

Loading…
Cancel
Save