From 461f5ec6d652a990ea6c90227edf8b933758713c Mon Sep 17 00:00:00 2001 From: Administrator <1760316362@qq.com> Date: Fri, 2 Aug 2019 16:39:24 +0800 Subject: [PATCH] update --- .../io/legado/app/ui/sourcedebug/SourceDebugActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt b/app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt index 1e0cd7fef..0dda06020 100644 --- a/app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt +++ b/app/src/main/java/io/legado/app/ui/sourcedebug/SourceDebugActivity.kt @@ -31,6 +31,12 @@ class SourceDebugActivity : VMBaseActivity(R.layout.activity_s viewModel.init(intent.getStringExtra("key")) initRecyclerView() initSearchView() + viewModel.observe{state, msg-> + adapter.addItem(msg) + if (state == -1 || state == 1000) { + rotate_loading.hide() + } + } } private fun initRecyclerView() {