mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Merge "Move static-crops to 0,0 in animations" into rvc-dev
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user