diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java index 9ba4a65e23..5c10565dc1 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java @@ -477,7 +477,6 @@ public class TaskbarDragController extends DragController im tx.setScale(dragSurface, scale, scale); tx.setAlpha(dragSurface, alpha); tx.apply(); - tx.close(); } }); mReturnAnimator.addListener(new AnimatorListenerAdapter() { @@ -498,6 +497,7 @@ public class TaskbarDragController extends DragController im } private void cleanUpSurface() { + tx.close(); maybeOnDragEnd(); // Synchronize removing the drag surface with the next draw after calling // maybeOnDragEnd() @@ -508,7 +508,6 @@ public class TaskbarDragController extends DragController im syncer.addToSync(syncId, viewRoot.getView()); syncer.addTransactionToSync(syncId, transaction); syncer.markSyncReady(syncId); - mReturnAnimator = null; } });