pull/48/head
kunfei 5 years ago
parent 1997fe7d34
commit ec278be000
  1. 14
      app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt

@ -57,11 +57,6 @@ class BookSourceEditActivity :
viewModel.initData(intent) viewModel.initData(intent)
} }
override fun onDestroy() {
super.onDestroy()
mSoftKeyboardTool?.dismiss()
}
override fun onCompatCreateOptionsMenu(menu: Menu): Boolean { override fun onCompatCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.source_edit, menu) menuInflater.inflate(R.menu.source_edit, menu)
return super.onCompatCreateOptionsMenu(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?) { private fun setEditEntities(tabPosition: Int?) {
when (tabPosition) { when (tabPosition) {
1 -> adapter.editEntities = searchEntities 1 -> adapter.editEntities = searchEntities

Loading…
Cancel
Save