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

Commit 94c1178e authored by Evan Rosky's avatar Evan Rosky
Browse files

Connect split-screen things to systemui divider

Since divider stuff lives in sysui instead of framework

Bug: 133381284
Test: Manual, open 2 apps in split and drag-up to show
      recents.
Change-Id: I555876abc9b2f73c213c5559821709228d0afce9
parent 6af6411d
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -81,12 +81,9 @@ public class RecentsAnimationController {
            mWindowThresholdCrossed = windowThresholdCrossed;
            UI_HELPER_EXECUTOR.execute(() -> {
                mController.setAnimationTargetsBehindSystemBars(!windowThresholdCrossed);
                if (mShouldMinimizeSplitScreen && windowThresholdCrossed) {
                    // NOTE: As a workaround for conflicting animations (Launcher animating the task
                    // leash, and SystemUI resizing the docked stack, which resizes the task), we
                    // currently only set the minimized mode, and not the inverse.
                    // TODO: Synchronize the minimize animation with the launcher animation
                    mController.setSplitScreenMinimized(windowThresholdCrossed);
                SystemUiProxy p = SystemUiProxy.INSTANCE.getNoCreate();
                if (p != null && mShouldMinimizeSplitScreen) {
                    p.setSplitScreenMinimized(windowThresholdCrossed);
                }
            });
        }
+11 −0
Original line number Diff line number Diff line
@@ -296,4 +296,15 @@ public class SystemUiProxy implements ISystemUiProxy {
            }
        }
    }

    @Override
    public void setSplitScreenMinimized(boolean minimized) {
        if (mSystemUiProxy != null) {
            try {
                mSystemUiProxy.setSplitScreenMinimized(minimized);
            } catch (RemoteException e) {
                Log.w(TAG, "Failed call stopScreenPinning", e);
            }
        }
    }
}