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

Commit b2741521 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Fix split selection for 3P launcher with animations off

* When animations were off, the currentState in
FallbackRecentsStateController is incorrect (we didn't need
that check at all)
* Surfaced a bug in MultiValueUpdateListener that is being
fixed in ag/26416537

Test: 1P + 3P launcher all of the following:
starting split from overview with animations and without
rotation
selecting second app before and after rotation
Fixes: 327346105

Change-Id: I4f19119c30a8669bba6ced06e30773f085a78047
parent 0b32b7a9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -117,9 +117,7 @@ public class FallbackRecentsStateController implements StateHandler<RecentsState

        setter.setViewBackgroundColor(mActivity.getScrimView(), state.getScrimColor(mActivity),
                config.getInterpolator(ANIM_SCRIM_FADE, LINEAR));

        RecentsState currentState = mActivity.getStateManager().getState();
        if (isSplitSelectionState(state) && !isSplitSelectionState(currentState)) {
        if (isSplitSelectionState(state)) {
            int duration = state.getTransitionDuration(mActivity, true /* isToState */);
            // TODO (b/246851887): Pass in setter as a NO_ANIM PendingAnimation instead
            PendingAnimation pa = new PendingAnimation(duration);