mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -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 EditText mEditText;
|
||||
EditText mEditText;
|
||||
|
||||
private TextView mFindResultsTextView;
|
||||
|
||||
private WebView mWebView;
|
||||
|
||||
private InputMethodManager mInput;
|
||||
InputMethodManager mInput;
|
||||
|
||||
private ActionMode mActionMode;
|
||||
|
||||
@ -164,14 +164,14 @@ public class CompatFindActionModeCallback
|
||||
|
||||
// Show on screen keyboard
|
||||
public void showSoftInput() {
|
||||
mEditText.requestFocus();
|
||||
mEditText.setFocusable(true);
|
||||
mEditText.setFocusableInTouchMode(true);
|
||||
mEditText.requestFocusFromTouch();
|
||||
//duck-dive any hidden show/hide processes
|
||||
mEditText.postDelayed(() -> {
|
||||
|
||||
mEditText.requestFocus();
|
||||
mInput.showSoftInput(mEditText, 0);
|
||||
|
||||
}, 100);
|
||||
|
||||
if (mEditText.requestFocus()) {
|
||||
mInput.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user