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

Commit ca795cc4 authored by Vinit Nayak's avatar Vinit Nayak Committed by Automerger Merge Worker
Browse files

Merge "Add onQuickSwitchToNewTask(int rotation)" into rvc-dev am: 4c04982f

Change-Id: Ib81fe594dc6c82feba01e221e01caf5f1cef0beb
parents 789deeff 4c04982f
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);
            }
        }
    }
}