Merge "Fix drag shadow does not render on screen when perform drag (1/2)"

This commit is contained in:
TreeHugger Robot
2022-02-14 03:31:31 +00:00
committed by Android (Google) Code Review

View File

@@ -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");
}