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

Commit b39ef584 authored by Tony Huang's avatar Tony Huang Committed by Android (Google) Code Review
Browse files

Merge "Refactor startIntentAndTaskWithLegacyTransition"

parents 860e675a 3a2d6214
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -609,14 +609,13 @@ public class SystemUiProxy implements ISystemUiProxy,
    }

    public void startIntentAndTaskWithLegacyTransition(PendingIntent pendingIntent,
            Intent fillInIntent, int taskId, boolean intentFirst, Bundle mainOptions,
            Bundle sideOptions, @SplitConfigurationOptions.StagePosition int sidePosition,
            float splitRatio, RemoteAnimationAdapter adapter) {
            Intent fillInIntent, int taskId, Bundle mainOptions, Bundle sideOptions,
            @SplitConfigurationOptions.StagePosition int sidePosition, float splitRatio,
            RemoteAnimationAdapter adapter) {
        if (mSystemUiProxy != null) {
            try {
                mSplitScreen.startIntentAndTaskWithLegacyTransition(pendingIntent, fillInIntent,
                        taskId, intentFirst, mainOptions, sideOptions, sidePosition, splitRatio,
                        adapter);
                        taskId, mainOptions, sideOptions, sidePosition, splitRatio, adapter);
            } catch (RemoteException e) {
                Log.w(TAG, "Failed call startTasksWithLegacyTransition");
            }
+2 −3
Original line number Diff line number Diff line
@@ -156,9 +156,8 @@ public class SplitSelectStateController {
                        splitRatio, adapter);
            } else {
                mSystemUiProxy.startIntentAndTaskWithLegacyTransition(taskPendingIntent,
                        new Intent(), taskId2, stagePosition == STAGE_POSITION_TOP_OR_LEFT,
                        mainOpts.toBundle(), null /* sideOptions */, STAGE_POSITION_BOTTOM_OR_RIGHT,
                        splitRatio, adapter);
                        new Intent(), taskId2, mainOpts.toBundle(), null /* sideOptions */,
                        stagePosition, splitRatio, adapter);
            }
        }
    }