mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-10 07:48:30 -04:00
#1526 show soft input on find-in-page clicked
This commit is contained in:
parent
14d7fdf111
commit
7866748099
@ -44,13 +44,13 @@ public class CompatFindActionModeCallback
|
|||||||
|
|
||||||
private View mCustomView;
|
private View mCustomView;
|
||||||
|
|
||||||
private EditText mEditText;
|
EditText mEditText;
|
||||||
|
|
||||||
private TextView mFindResultsTextView;
|
private TextView mFindResultsTextView;
|
||||||
|
|
||||||
private WebView mWebView;
|
private WebView mWebView;
|
||||||
|
|
||||||
private InputMethodManager mInput;
|
InputMethodManager mInput;
|
||||||
|
|
||||||
private ActionMode mActionMode;
|
private ActionMode mActionMode;
|
||||||
|
|
||||||
@ -164,14 +164,14 @@ public class CompatFindActionModeCallback
|
|||||||
|
|
||||||
// Show on screen keyboard
|
// Show on screen keyboard
|
||||||
public void showSoftInput() {
|
public void showSoftInput() {
|
||||||
mEditText.requestFocus();
|
//duck-dive any hidden show/hide processes
|
||||||
mEditText.setFocusable(true);
|
mEditText.postDelayed(() -> {
|
||||||
mEditText.setFocusableInTouchMode(true);
|
|
||||||
mEditText.requestFocusFromTouch();
|
mEditText.requestFocus();
|
||||||
|
mInput.showSoftInput(mEditText, 0);
|
||||||
|
|
||||||
|
}, 100);
|
||||||
|
|
||||||
if (mEditText.requestFocus()) {
|
|
||||||
mInput.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user