diff --git a/app/src/main/java/io/legado/app/ui/replacerule/edit/ReplaceEditDialog.kt b/app/src/main/java/io/legado/app/ui/replacerule/edit/ReplaceEditDialog.kt index 49c04f4d5..eb5a1c997 100644 --- a/app/src/main/java/io/legado/app/ui/replacerule/edit/ReplaceEditDialog.kt +++ b/app/src/main/java/io/legado/app/ui/replacerule/edit/ReplaceEditDialog.kt @@ -77,7 +77,7 @@ class ReplaceEditDialog : DialogFragment(), } et_replace_rule.onFocusChange { v, hasFocus -> if (hasFocus) { - mSoftKeyboardTool.width = et_replace_rule.width + mSoftKeyboardTool.width = v.width mSoftKeyboardTool.showAsDropDown(v) } else { mSoftKeyboardTool.dismiss()