pull/32/head
kunfei 5 years ago
parent 8d93231ac8
commit c8b475bfa8
  1. 4
      app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt
  2. 1
      app/src/main/res/layout/activity_source_debug.xml

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

@ -24,6 +24,7 @@
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_margin="6dp"
android:visibility="gone"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title_bar"

Loading…
Cancel
Save