Add a way to fade out taskbar view when closing an app in the taskbar.

Prior to this change, if taskbar is showing and we are cloing an app
that is visible in the taskbar, the taskbar view would immediately
disappear.

Now we will fade out the view until the animation is 33% complete,
at which point the 'space' will be clear for the FloatingIconView
to settle at its final location.

Bug: 273961611
Test: open app in hotseat
      note that the taskbar view is gone immediately
      have taskbar visible, close app that is shown in taskbar
      note that the taskbar view fades out

Change-Id: I5589e2ce3033cfa19669d1bfaf568aef2a96015e
This commit is contained in:
Jon Miranda
2023-03-17 10:01:34 -07:00
parent 8a53e78f22
commit c0c1c55c5d
3 changed files with 26 additions and 6 deletions

View File

@@ -638,7 +638,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
(mLauncher.getTaskbarUIController() == null || !isTransientTaskbar(mLauncher))
? null
: mLauncher.getTaskbarUIController().findMatchingView(v),
!appTargetsAreTranslucent, launcherIconBounds, true /* isOpening */);
null /* fadeOutView */, !appTargetsAreTranslucent, launcherIconBounds,
true /* isOpening */);
Rect crop = new Rect();
Matrix matrix = new Matrix();
@@ -1352,7 +1353,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
mDeviceProfile.isMultiWindowMode ? 0 : getWindowCornerRadius(mLauncher),
isTransluscent, fallbackBackgroundColor);
} else if (launcherView != null) {
floatingIconView = getFloatingIconView(mLauncher, launcherView,
floatingIconView = getFloatingIconView(mLauncher, launcherView, null,
mLauncher.getTaskbarUIController() == null
? null
: mLauncher.getTaskbarUIController().findMatchingView(launcherView),