Merge "Do not send setFinishTaskTransaction if not swipe" into main

This commit is contained in:
Ikram Gabiyev
2024-12-05 20:38:14 +00:00
committed by Android (Google) Code Review
@@ -5926,8 +5926,9 @@ public abstract class RecentsView<
}
final boolean sendUserLeaveHint = toRecents && shouldPip;
if (sendUserLeaveHint) {
if (sendUserLeaveHint && !com.android.wm.shell.Flags.enablePip2()) {
// Notify the SysUI to use fade-in animation when entering PiP from live tile.
// Note: PiP2 handles entering differently, so skip if enable_pip2=true.
final SystemUiProxy systemUiProxy = SystemUiProxy.INSTANCE.get(getContext());
systemUiProxy.setPipAnimationTypeToAlpha();
systemUiProxy.setShelfHeight(true, mContainer.getDeviceProfile().hotseatBarSizePx);