mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Fade away half-screen assistant on swipe-to-recents gesture.
Half-screen assistant is not in task stack, and will be faded away. Workspace-to-recents case with half-screen assistant needs more work after we decide whether we should swipe to the workspace preview or to the first task. Bug: 70789568 Test: Manual: swipe a normal app to Recents; swipe an app with a half-screen assistant on top of it to Recents. Change-Id: I6e3acc2b94bb3b56d6590a72073d37a1771a1da5
This commit is contained in:
@@ -563,8 +563,13 @@ public class WindowTransformSwipeHandler extends BaseSwipeInteractionHandler {
|
||||
for (RemoteAnimationTargetCompat app : mRecentsAnimationWrapper.targets) {
|
||||
if (app.mode == MODE_CLOSING) {
|
||||
transaction.setMatrix(app.leash, mTmpMatrix)
|
||||
.setWindowCrop(app.leash, mClipRect)
|
||||
.show(app.leash);
|
||||
.setWindowCrop(app.leash, mClipRect);
|
||||
|
||||
if (app.isNotInRecents) {
|
||||
transaction.setAlpha(app.leash, 1 - shift);
|
||||
}
|
||||
|
||||
transaction.show(app.leash);
|
||||
}
|
||||
}
|
||||
transaction.apply();
|
||||
|
||||
Reference in New Issue
Block a user