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

This commit is contained in:
Ikram Gabiyev authored and Android (Google) Code Review committed 2024-12-05 20:38:14 +00:00
commit b95b0eec92
1 file changed
+2 -1
@@ -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);