[Search] Apply background to entire SearchInput view instead of just EditText
Bug: 199555357 Test: visual Change-Id: Ice966416e901e7c601b44529d0422798e943e222
This commit is contained in:
@@ -59,7 +59,6 @@ import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.DeviceProfile.OnDeviceProfileChangeListener;
|
||||
import com.android.launcher3.DragSource;
|
||||
import com.android.launcher3.DropTarget.DragObject;
|
||||
import com.android.launcher3.ExtendedEditText;
|
||||
import com.android.launcher3.Insettable;
|
||||
import com.android.launcher3.InsettableFrameLayout;
|
||||
import com.android.launcher3.R;
|
||||
@@ -639,6 +638,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
|
||||
|
||||
public void onClearSearchResult() {
|
||||
mIsSearching = false;
|
||||
mHeader.setCollapsed(false);
|
||||
rebindAdapters();
|
||||
getActiveRecyclerView().scrollToTop();
|
||||
}
|
||||
@@ -814,14 +814,13 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
|
||||
invalidateHeader();
|
||||
}
|
||||
if (mSearchUiManager.getEditText() != null) {
|
||||
ExtendedEditText editText = mSearchUiManager.getEditText();
|
||||
boolean bgVisible = editText.getBackgroundVisibility();
|
||||
boolean bgVisible = mSearchUiManager.getBackgroundVisibility();
|
||||
if (scrolledOffset == 0 && !mIsSearching) {
|
||||
bgVisible = true;
|
||||
} else if (scrolledOffset > mHeaderThreshold) {
|
||||
bgVisible = false;
|
||||
}
|
||||
editText.setBackgroundVisibility(bgVisible, 1 - prog);
|
||||
mSearchUiManager.setBackgroundVisibility(bgVisible, 1 - prog);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user