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

Commit 16cd3677 authored by Vinit Nayak's avatar Vinit Nayak Committed by Winson Chung
Browse files

Add onQuickSwitchToNewTask(int rotation)

ag/10830421
ag/10831581

Fixes: 150250451
Change-Id: I2d6dbdd0fc7637949bb5ff7707c414f14dbf6d49
parent 5e2cd32a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -782,10 +782,6 @@ public class LauncherSwipeHandler<T extends BaseDraggingActivity>
            }
        }

        if (endTarget == NEW_TASK) {
            SystemUiProxy.INSTANCE.get(mContext).onQuickSwitchToNewTask();
        }

        if (endTarget == RECENTS || endTarget == HOME) {
            // Since we're now done quickStepping, we want to only listen for touch events
            // for the main orientation's nav bar, instead of multiple
+8 −9
Original line number Diff line number Diff line
@@ -334,14 +334,13 @@ public class SystemUiProxy implements ISystemUiProxy {
        }
    }

    public void onQuickSwitchToNewTask() {
        //TODO(b/150250451) add back in after big CL goes through
//        if (mSystemUiProxy != null) {
//            try {
//                mSystemUiProxy.onQuickSwitchToNewTask();
//            } catch (RemoteException e) {
//                Log.w(TAG, "Failed call onQuickstepStarted", e);
//            }
//        }
    public void onQuickSwitchToNewTask(int rotation) {
        if (mSystemUiProxy != null) {
            try {
                mSystemUiProxy.onQuickSwitchToNewTask(rotation);
            } catch (RemoteException e) {
                Log.w(TAG, "Failed call onQuickSwitchToNewTask with arg: " + rotation, e);
            }
        }
    }
}