Add onQuickSwitchToNewTask(int rotation)

ag/10830421
ag/10831581

Fixes: 150250451
Change-Id: I2d6dbdd0fc7637949bb5ff7707c414f14dbf6d49
This commit is contained in:
Vinit Nayak
2020-03-24 16:55:07 -07:00
committed by Winson Chung
parent 5e2cd32ac3
commit 16cd3677bc
2 changed files with 8 additions and 13 deletions
@@ -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
@@ -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);
}
}
}
}