pull/32/head
kunfei 5 years ago
parent e82dbfb1ef
commit d49f4daa25
  1. 2
      app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt

@ -87,12 +87,14 @@ class SourceDebugActivity : BaseActivity<AndroidViewModel>(), SourceDebug.Callba
}
override fun printLog(state: Int, msg: String) {
launch {
adapter.logList.add(msg)
adapter.notifyItemChanged(adapter.logList.size - 1)
if (state == -1 || state == 1000) {
rotate_loading.visibility = View.GONE
}
}
}
override fun onDestroy() {
SourceDebug.debugSource = null

Loading…
Cancel
Save