pull/32/head
kunfei 5 years ago
parent 469370d860
commit c5dbbf7c95
  1. 4
      app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt

@ -73,7 +73,7 @@ class SourceDebugActivity : BaseActivity<AndroidViewModel>(), SourceDebug.Callba
adapter.notifyDataSetChanged() adapter.notifyDataSetChanged()
bookSource?.let { bookSource?.let {
SourceDebug.debugSource = it.bookSourceUrl SourceDebug.debugSource = it.bookSourceUrl
rotate_loading.visibility = View.VISIBLE rotate_loading.show()
if (key.isAbsUrl()) { if (key.isAbsUrl()) {
val book = Book() val book = Book()
book.origin = it.bookSourceUrl book.origin = it.bookSourceUrl
@ -95,7 +95,7 @@ class SourceDebugActivity : BaseActivity<AndroidViewModel>(), SourceDebug.Callba
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) {
rotate_loading.visibility = View.GONE rotate_loading.hide()
} }
} }
} }

Loading…
Cancel
Save