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)
}
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

Loading…
Cancel
Save