Merge "Move static-crops to 0,0 in animations" into rvc-dev

This commit is contained in:
Evan Rosky
2020-05-30 02:42:29 +00:00
committed by Android (Google) Code Review

View File

@@ -611,8 +611,10 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
}
matrix.setTranslate(tmpPos.x, tmpPos.y);
final Rect crop = new Rect(target.screenSpaceBounds);
crop.offsetTo(0, 0);
builder.withMatrix(matrix)
.withWindowCrop(target.screenSpaceBounds)
.withWindowCrop(crop)
.withAlpha(1f);
}
params[i] = builder.build();
@@ -781,8 +783,10 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
builder.withMatrix(matrix)
.withAlpha(1f);
}
final Rect crop = new Rect(target.screenSpaceBounds);
crop.offsetTo(0, 0);
params[i] = builder
.withWindowCrop(target.screenSpaceBounds)
.withWindowCrop(crop)
.build();
}
surfaceApplier.scheduleApply(params);