From ec278be000d8cc5a6a925eaeb399e7d53afddb69 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 5 Nov 2019 22:46:18 +0800 Subject: [PATCH] up --- .../ui/book/source/edit/BookSourceEditActivity.kt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 5911ffcb2..a5d1e7676 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 @@ -57,11 +57,6 @@ class BookSourceEditActivity : viewModel.initData(intent) } - override fun onDestroy() { - super.onDestroy() - mSoftKeyboardTool?.dismiss() - } - override fun onCompatCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.source_edit, menu) return super.onCompatCreateOptionsMenu(menu) @@ -113,6 +108,15 @@ class BookSourceEditActivity : }) } + override fun finish() { + super.finish() + } + + override fun onDestroy() { + super.onDestroy() + mSoftKeyboardTool?.dismiss() + } + private fun setEditEntities(tabPosition: Int?) { when (tabPosition) { 1 -> adapter.editEntities = searchEntities