mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
19ca702fd0
commit
ad45a551da
@ -400,8 +400,7 @@ interface JsExtensions {
|
||||
}
|
||||
entry = zis.nextEntry
|
||||
}
|
||||
Debug.log("getZipContent 未发现内容")
|
||||
|
||||
log("getZipContent 未发现内容")
|
||||
return null
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,7 @@ import kotlinx.coroutines.Dispatchers.IO
|
||||
import kotlinx.coroutines.Dispatchers.Main
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
import splitties.init.appCtx
|
||||
import splitties.views.onClick
|
||||
|
||||
class RuleUiLoginDialog : BaseDialogFragment(R.layout.dialog_login) {
|
||||
@ -106,13 +107,13 @@ class RuleUiLoginDialog : BaseDialogFragment(R.layout.dialog_login) {
|
||||
source.getLoginJs()?.let {
|
||||
try {
|
||||
source.evalJS(it)
|
||||
toastOnUi(R.string.success)
|
||||
appCtx.toastOnUi(R.string.success)
|
||||
withContext(Main) {
|
||||
dismiss()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
AppLog.put("登录出错\n${e.localizedMessage}", e)
|
||||
toastOnUi("error:${e.localizedMessage}")
|
||||
appCtx.toastOnUi("error:${e.localizedMessage}")
|
||||
e.printOnDebug()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user