pull/32/head
Administrator 5 years ago
parent d6b249f823
commit 461f5ec6d6
  1. 6
      app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt

@ -31,6 +31,12 @@ class SourceDebugActivity : VMBaseActivity<SourceDebugModel>(R.layout.activity_s
viewModel.init(intent.getStringExtra("key")) viewModel.init(intent.getStringExtra("key"))
initRecyclerView() initRecyclerView()
initSearchView() initSearchView()
viewModel.observe{state, msg->
adapter.addItem(msg)
if (state == -1 || state == 1000) {
rotate_loading.hide()
}
}
} }
private fun initRecyclerView() { private fun initRecyclerView() {

Loading…
Cancel
Save