mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 11:25:34 -04:00
Improve ActionMode
This commit is contained in:
parent
9a7fe54338
commit
c9537ce120
@ -27,10 +27,11 @@
|
||||
android:scrollHorizontally="true"
|
||||
android:inputType="text"
|
||||
android:hint="@string/search_label"
|
||||
android:focusableInTouchMode="true"
|
||||
android:textColorHint="@color/hint_foreground_material_dark"
|
||||
android:textColor="@android:color/white"
|
||||
android:imeOptions="actionDone|flagNoExtractUi|flagNoFullscreen"
|
||||
android:layout_marginEnd="10dip">
|
||||
android:layout_marginRight="10dip">
|
||||
|
||||
<requestFocus/>
|
||||
</EditText>
|
||||
|
@ -141,7 +141,15 @@ public class CompatFindActionModeCallback
|
||||
|
||||
// Show on screen keyboard
|
||||
public void showSoftInput() {
|
||||
mInput.showSoftInput(mEditText, 0);
|
||||
mEditText.requestFocus();
|
||||
mEditText.setFocusable(true);
|
||||
mEditText.setFocusableInTouchMode(true);
|
||||
mEditText.requestFocusFromTouch();
|
||||
|
||||
|
||||
if (mEditText.requestFocus()) {
|
||||
mInput.showSoftInput(mEditText, InputMethodManager.SHOW_IMPLICIT);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user