Loading quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java +10 −6 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.view.MotionEvent; import android.view.SurfaceControl; import android.view.View; import android.view.ViewRootImpl; import android.window.SurfaceSyncer; import androidx.annotation.Nullable; Loading Loading @@ -476,6 +477,7 @@ public class TaskbarDragController extends DragController<BaseTaskbarContext> im tx.setScale(dragSurface, scale, scale); tx.setAlpha(dragSurface, alpha); tx.apply(); tx.close(); } }); mReturnAnimator.addListener(new AnimatorListenerAdapter() { Loading @@ -499,12 +501,14 @@ public class TaskbarDragController extends DragController<BaseTaskbarContext> im maybeOnDragEnd(); // Synchronize removing the drag surface with the next draw after calling // maybeOnDragEnd() viewRoot.consumeNextDraw((transaction) -> { SurfaceControl.Transaction transaction = new SurfaceControl.Transaction(); transaction.remove(dragSurface); transaction.apply(); tx.close(); }); viewRoot.getView().invalidate(); SurfaceSyncer syncer = new SurfaceSyncer(); int syncId = syncer.setupSync(transaction::close); syncer.addToSync(syncId, viewRoot.getView()); syncer.addTransactionToSync(syncId, transaction); syncer.markSyncReady(syncId); mReturnAnimator = null; } }); Loading Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java +10 −6 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.view.MotionEvent; import android.view.SurfaceControl; import android.view.View; import android.view.ViewRootImpl; import android.window.SurfaceSyncer; import androidx.annotation.Nullable; Loading Loading @@ -476,6 +477,7 @@ public class TaskbarDragController extends DragController<BaseTaskbarContext> im tx.setScale(dragSurface, scale, scale); tx.setAlpha(dragSurface, alpha); tx.apply(); tx.close(); } }); mReturnAnimator.addListener(new AnimatorListenerAdapter() { Loading @@ -499,12 +501,14 @@ public class TaskbarDragController extends DragController<BaseTaskbarContext> im maybeOnDragEnd(); // Synchronize removing the drag surface with the next draw after calling // maybeOnDragEnd() viewRoot.consumeNextDraw((transaction) -> { SurfaceControl.Transaction transaction = new SurfaceControl.Transaction(); transaction.remove(dragSurface); transaction.apply(); tx.close(); }); viewRoot.getView().invalidate(); SurfaceSyncer syncer = new SurfaceSyncer(); int syncId = syncer.setupSync(transaction::close); syncer.addToSync(syncId, viewRoot.getView()); syncer.addTransactionToSync(syncId, transaction); syncer.markSyncReady(syncId); mReturnAnimator = null; } }); Loading