Support predictive back from all apps to home
bug: b/238475505 Test: manual Change-Id: Ibf4f7f41a26b044a538e2cd566d2297ed88f1b99
This commit is contained in:
@@ -808,7 +808,7 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawOnScrim(Canvas canvas) {
|
||||
public void drawOnScrimWithScale(Canvas canvas, float scale) {
|
||||
boolean isTablet = mActivityContext.getDeviceProfile().isTablet;
|
||||
|
||||
// Draw full background panel for tablets.
|
||||
@@ -833,7 +833,9 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
||||
if (mHeaderPaint.getColor() == mScrimColor || mHeaderPaint.getColor() == 0) {
|
||||
return;
|
||||
}
|
||||
int bottom = getHeaderBottom() + getVisibleContainerView().getPaddingTop();
|
||||
final float offset = (getVisibleContainerView().getHeight() * (1 - scale) / 2);
|
||||
final float bottom =
|
||||
scale * (getHeaderBottom() + getVisibleContainerView().getPaddingTop()) + offset;
|
||||
FloatingHeaderView headerView = getFloatingHeaderView();
|
||||
if (isTablet) {
|
||||
// Start adding header protection if search bar or tabs will attach to the top.
|
||||
|
||||
Reference in New Issue
Block a user