diff options
| author | 2022-02-14 03:31:31 +0000 | |
|---|---|---|
| committer | 2022-02-14 03:31:31 +0000 | |
| commit | 1a8f58e7e5a7278c6c13d2c36744914aedcff590 (patch) | |
| tree | 77450817f35fe76f9e5f40d3e5cec3b113d00a1a | |
| parent | 647dc6733436bf4dcab59f06ea25b471fafbb83f (diff) | |
| parent | 741f63b4ecc9e4d02888d22253fc88ecc3bebe4b (diff) | |
Merge "Fix drag shadow does not render on screen when perform drag (1/2)"
| -rw-r--r-- | services/core/java/com/android/server/wm/DragDropController.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/DragDropController.java b/services/core/java/com/android/server/wm/DragDropController.java index e0887e1f1970..4ce058153003 100644 --- a/services/core/java/com/android/server/wm/DragDropController.java +++ b/services/core/java/com/android/server/wm/DragDropController.java @@ -179,11 +179,9 @@ class DragDropController { final SurfaceControl.Transaction transaction = mDragState.mTransaction; transaction.setAlpha(surfaceControl, mDragState.mOriginalAlpha); - transaction.setPosition( - surfaceControl, touchX - thumbCenterX, touchY - thumbCenterY); transaction.show(surfaceControl); displayContent.reparentToOverlay(transaction, surfaceControl); - callingWin.scheduleAnimation(); + mDragState.updateDragSurfaceLocked(true, touchX, touchY); if (SHOW_LIGHT_TRANSACTIONS) { Slog.i(TAG_WM, "<<< CLOSE TRANSACTION performDrag"); } |