|
|
@ -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 |
|
|
|