Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 894c17c8 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Reduce redundant IPC when switching app by navigation bar

In SplitScreenController#onStartingSplitLegacy, it also ignores:
if (ENABLE_SHELL_TRANSITIONS) return null;

This avoids a latency from the 2-way IPC in
RecentsAnimationListener#onTasksAppeared.

Bug: 275508603
Test: Capture trace when switching app by quickstep.

Change-Id: Ia11cbca0d38cdc2bfd676dfa3d59a5c8931a2d6e
parent 227d3b79
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -206,8 +206,9 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
                    }
                }

                RemoteAnimationTarget[] nonAppTargets = SystemUiProxy.INSTANCE.get(mCtx)
                        .onStartingSplitLegacy(appearedTaskTargets);
                RemoteAnimationTarget[] nonAppTargets = ENABLE_SHELL_TRANSITIONS
                        ? null : SystemUiProxy.INSTANCE.get(mCtx).onStartingSplitLegacy(
                                appearedTaskTargets);
                if (nonAppTargets == null) {
                    nonAppTargets = new RemoteAnimationTarget[0];
                }