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