[Search] Update AllApps header protection

- Disables header protection on AOSP
- Fades in/out search box pill instead of sudden movements
- Work tabs protection shows and hides based on scroll position

Bug: 194106968 [APK attached]
Test: Manual
Change-Id: I5532847ddba3d4555003b0934b8fc846dc5a5cc7
This commit is contained in:
y
2021-08-23 22:44:11 -07:00
parent c8295216d5
commit 8dcd7e0ce7
4 changed files with 78 additions and 59 deletions

View File

@@ -99,8 +99,18 @@ public class ExtendedEditText extends EditText {
}
}
// inherited class can override to change the appearance of the edit text.
public void show() {}
/**
* 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();