From b1ca1b777f87ca41562878b854473688119e7e12 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Thu, 30 Mar 2023 23:48:57 +0800 Subject: [PATCH] Reduce no-op IPC when swiping up In SplitScreenController#onGoingToRecentsLegacy, it also ignores: if (ENABLE_SHELL_TRANSITIONS) return null; This avoids a latency from the 2-way IPC before calling RecentsAnimationListener#onRecentsAnimationStart. Bug: 275508603 Test: Swipe-up Change-Id: If1aa847bd92b2a16812a5181b4476d9a35619a76 --- quickstep/src/com/android/quickstep/SystemUiProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/SystemUiProxy.java b/quickstep/src/com/android/quickstep/SystemUiProxy.java index d8f49fffdd..e704bbfd26 100644 --- a/quickstep/src/com/android/quickstep/SystemUiProxy.java +++ b/quickstep/src/com/android/quickstep/SystemUiProxy.java @@ -765,7 +765,7 @@ public class SystemUiProxy implements ISystemUiProxy { */ @Nullable public RemoteAnimationTarget[] onGoingToRecentsLegacy(RemoteAnimationTarget[] apps) { - if (mSplitScreen != null) { + if (!TaskAnimationManager.ENABLE_SHELL_TRANSITIONS && mSplitScreen != null) { try { return mSplitScreen.onGoingToRecentsLegacy(apps); } catch (RemoteException e) {