mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
[Search] Apply background to entire SearchInput view instead of just EditText
Bug: 199555357 Test: visual Change-Id: Ice966416e901e7c601b44529d0422798e943e222
This commit is contained in:
@@ -26,7 +26,6 @@ import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.EditText;
|
||||
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.views.ActivityContext;
|
||||
|
||||
|
||||
@@ -99,18 +98,6 @@ public class ExtendedEditText extends EditText {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether EditText background should be visible
|
||||
* @param maxAlpha defines the maximum alpha the background should animates to
|
||||
*/
|
||||
public void setBackgroundVisibility(boolean visible, float maxAlpha) {}
|
||||
|
||||
/**
|
||||
* Returns whether a visible background is set on EditText
|
||||
*/
|
||||
public boolean getBackgroundVisibility() {
|
||||
return getBackground() != null;
|
||||
}
|
||||
|
||||
public void showKeyboard() {
|
||||
mShowImeAfterFirstLayout = !showSoftInput();
|
||||
@@ -150,9 +137,6 @@ public class ExtendedEditText extends EditText {
|
||||
if (!TextUtils.isEmpty(getText())) {
|
||||
setText("");
|
||||
}
|
||||
if (FeatureFlags.ENABLE_DEVICE_SEARCH.get()) {
|
||||
return;
|
||||
}
|
||||
if (isFocused()) {
|
||||
View nextFocus = focusSearch(View.FOCUS_DOWN);
|
||||
if (nextFocus != null) {
|
||||
|
||||
Reference in New Issue
Block a user