mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Hide IME when scrolling happens on all apps screen/scroller
Bug: 161594550 TL;DR;; - draging an item closes the IME - clearing a searchbox to empty string has no effect on IME Change-Id: Ic3a91d1b22434dcb78347dd8b12b5ceab14eb928
This commit is contained in:
@@ -24,6 +24,7 @@ import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.EditText;
|
||||
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.util.UiThreadHelper;
|
||||
|
||||
|
||||
@@ -130,6 +131,10 @@ public class ExtendedEditText extends EditText {
|
||||
public void reset() {
|
||||
if (!TextUtils.isEmpty(getText())) {
|
||||
setText("");
|
||||
} else {
|
||||
if (FeatureFlags.ENABLE_DEVICE_SEARCH.get()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (isFocused()) {
|
||||
View nextFocus = focusSearch(View.FOCUS_DOWN);
|
||||
|
||||
Reference in New Issue
Block a user