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