mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
[Search] Avoiding hiding keyboard when clearing search text
Bug: 199555357 Test: manual Change-Id: I7bc9b7097427aed3b526c8d75956d323e819e79b
This commit is contained in:
@@ -22,7 +22,6 @@ import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.DragEvent;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.EditText;
|
||||
|
||||
@@ -137,12 +136,5 @@ public class ExtendedEditText extends EditText {
|
||||
if (!TextUtils.isEmpty(getText())) {
|
||||
setText("");
|
||||
}
|
||||
if (isFocused()) {
|
||||
View nextFocus = focusSearch(View.FOCUS_DOWN);
|
||||
if (nextFocus != null) {
|
||||
nextFocus.requestFocus();
|
||||
}
|
||||
}
|
||||
hideKeyboard();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user