diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java index 0361c75c38..66a6eb8a88 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java @@ -544,8 +544,8 @@ public class TaskbarDragController extends DragController im transaction.remove(dragSurface); SurfaceSyncGroup syncGroup = new SurfaceSyncGroup("TaskBarController"); syncGroup.addSyncCompleteCallback(mActivity.getMainExecutor(), transaction::close); - syncGroup.addToSync(viewRoot); - syncGroup.addTransactionToSync(transaction); + syncGroup.add(viewRoot, null /* runnable */); + syncGroup.addTransaction(transaction); syncGroup.markSyncReady(); mReturnAnimator = null; }