From 357c664d43486a733d6ec3a16f74f1369a8fb470 Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 9 Nov 2020 15:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/association/ImportBookSourceDialog.kt | 3 +-- .../io/legado/app/ui/association/ImportRssSourceDialog.kt | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt index 74a40a954..c33174f0c 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt @@ -130,7 +130,6 @@ class ImportBookSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList activity?.finish() } - inner class SourcesAdapter(context: Context) : SimpleRecyclerAdapter(context, R.layout.item_source_import) { @@ -158,4 +157,4 @@ class ImportBookSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList } -} +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt index f5b1a40b3..e6aec6f80 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt @@ -37,8 +37,7 @@ import org.jetbrains.anko.sdk27.listeners.onClick class ImportRssSourcesDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener { val viewModel: ImportRssSourceViewModel - get() = - getViewModelOfActivity(ImportRssSourceViewModel::class.java) + get() = getViewModelOfActivity(ImportRssSourceViewModel::class.java) lateinit var adapter: SourcesAdapter override fun onStart() { @@ -157,5 +156,4 @@ class ImportRssSourcesDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList } } - -} +} \ No newline at end of file