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