feat: 优化

pull/219/head
kunfei 5 years ago
parent eb1eac8fcd
commit 1415573eb1
  1. 4
      app/src/main/java/io/legado/app/ui/replacerule/edit/ReplaceEditDialog.kt

@ -67,7 +67,7 @@ class ReplaceEditDialog : DialogFragment(),
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
mSoftKeyboardTool = KeyboardToolPop(requireContext(), AppConst.keyboardToolChars, this) mSoftKeyboardTool = KeyboardToolPop(requireContext(), AppConst.keyboardToolChars, this)
view.viewTreeObserver.addOnGlobalLayoutListener(KeyboardOnGlobalChangeListener()) ll_content.viewTreeObserver.addOnGlobalLayoutListener(KeyboardOnGlobalChangeListener())
tool_bar.inflateMenu(R.menu.replace_edit) tool_bar.inflateMenu(R.menu.replace_edit)
tool_bar.menu.applyTint(requireContext(), Theme.getTheme()) tool_bar.menu.applyTint(requireContext(), Theme.getTheme())
tool_bar.setOnMenuItemClickListener(this) tool_bar.setOnMenuItemClickListener(this)
@ -120,7 +120,7 @@ class ReplaceEditDialog : DialogFragment(),
val callBack get() = activity as? CallBack val callBack get() = activity as? CallBack
override fun sendText(text: String) { override fun sendText(text: String) {
TODO("Not yet implemented")
} }
private fun showKeyboardTopPopupWindow() { private fun showKeyboardTopPopupWindow() {

Loading…
Cancel
Save