From b5be12b231f0d7ed4b020bb72b84ade2ef707de1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 3 Oct 2019 15:56:53 +0800 Subject: [PATCH] up --- .../legado/app/ui/book/source/edit/BookSourceEditActivity.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt b/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt index 6362c947f..153e3fcb8 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt @@ -54,9 +54,7 @@ class BookSourceEditActivity : viewModel.sourceLiveData.observe(this, Observer { upRecyclerView(it) }) - intent.getStringExtra("data")?.let { - viewModel.setBookSource(it) - } + viewModel.setBookSource(intent.getStringExtra("data")) } override fun onDestroy() { @@ -113,7 +111,6 @@ class BookSourceEditActivity : setEditEntities(tab?.position) } }) - upRecyclerView(null) } private fun setEditEntities(tabPosition: Int?) {