|
|
@ -88,6 +88,7 @@ class SourceDebugActivity : BaseActivity<AndroidViewModel>(), SourceDebug.Callba |
|
|
|
|
|
|
|
|
|
|
|
override fun printLog(state: Int, msg: String) { |
|
|
|
override fun printLog(state: Int, msg: String) { |
|
|
|
launch { |
|
|
|
launch { |
|
|
|
|
|
|
|
synchronized(this) { |
|
|
|
adapter.logList.add(msg) |
|
|
|
adapter.logList.add(msg) |
|
|
|
adapter.notifyItemChanged(adapter.logList.size - 1) |
|
|
|
adapter.notifyItemChanged(adapter.logList.size - 1) |
|
|
|
if (state == -1 || state == 1000) { |
|
|
|
if (state == -1 || state == 1000) { |
|
|
@ -95,6 +96,7 @@ class SourceDebugActivity : BaseActivity<AndroidViewModel>(), SourceDebug.Callba |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onDestroy() { |
|
|
|
override fun onDestroy() { |
|
|
|
SourceDebug.debugSource = null |
|
|
|
SourceDebug.debugSource = null |
|
|
|