INNER CODE UNIT · Kotlin
goCheckUpdate
fumiama/copymanga · app/src/main/java/top/fumiama/copymanga/MainActivity.kt:462
private suspend fun goCheckUpdate(ignoreSkip: Boolean) {
withContext(Dispatchers.IO) {
Updater(
WeakReference(this@MainActivity),
toolsBox,
ignoreSkip,
getPreferences(MODE_PRIVATE).getInt("skipVersion", 0)
).check(BuildConfig.VERSION_CODE)
}
}
private fun showAbout() {
val dl = android.app.AlertDialog.Builder(this)
val comandy = "网络增强: ${Comandy.instance.status}, 版本 ${Config.comandy_version.value}"
val comancry = "API代理: ${Comancry.instance.status}, 版本 ${Config.comancry_version.value}"
dl.setMessage("${getString(R.string.app_description)}\n" +
"\n$comandy\n" +
"$comancry\n\n"+ File("/proc/self/cmdline").readText() + "\n" +