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

Commit 6855344c authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6214566 from 6af6411d to rvc-release

Change-Id: I5e7080df44c9d7569e196720f369c11eeaaee9d3
parents 278a6c1c 6af6411d
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -81,9 +81,12 @@ public class RecentsAnimationController {
            mWindowThresholdCrossed = windowThresholdCrossed;
            UI_HELPER_EXECUTOR.execute(() -> {
                mController.setAnimationTargetsBehindSystemBars(!windowThresholdCrossed);
                SystemUiProxy p = SystemUiProxy.INSTANCE.getNoCreate();
                if (p != null && mShouldMinimizeSplitScreen) {
                    p.setSplitScreenMinimized(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);
                }
            });
        }
+0 −11
Original line number Diff line number Diff line
@@ -296,15 +296,4 @@ 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);
            }
        }
    }
}