|
|
@ -69,6 +69,7 @@ class SourceDebugActivity : BaseActivity<AndroidViewModel>(), SourceDebug.Callba |
|
|
|
adapter.logList.clear() |
|
|
|
adapter.logList.clear() |
|
|
|
adapter.notifyDataSetChanged() |
|
|
|
adapter.notifyDataSetChanged() |
|
|
|
bookSource?.let { |
|
|
|
bookSource?.let { |
|
|
|
|
|
|
|
rotate_loading.visibility = View.VISIBLE |
|
|
|
if (key.isAbsUrl()) { |
|
|
|
if (key.isAbsUrl()) { |
|
|
|
val book = Book() |
|
|
|
val book = Book() |
|
|
|
book.origin = it.bookSourceUrl |
|
|
|
book.origin = it.bookSourceUrl |
|
|
@ -84,5 +85,8 @@ class SourceDebugActivity : BaseActivity<AndroidViewModel>(), SourceDebug.Callba |
|
|
|
|
|
|
|
|
|
|
|
override fun printLog(state: Int, msg: String) { |
|
|
|
override fun printLog(state: Int, msg: String) { |
|
|
|
adapter.logList.add(msg) |
|
|
|
adapter.logList.add(msg) |
|
|
|
|
|
|
|
if (state == -1 || state == 1000) { |
|
|
|
|
|
|
|
rotate_loading.visibility = View.GONE |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |