Merge "Correctly remove drag surface when perform drag failed" into udc-qpr-dev

This commit is contained in:
Treehugger Robot
2023-05-18 03:29:47 +00:00
committed by Android (Google) Code Review

View File

@@ -181,7 +181,11 @@ class DragDropController {
}
} finally {
if (surface != null) {
surface.release();
try (final SurfaceControl.Transaction transaction =
mService.mTransactionFactory.get()) {
transaction.remove(surface);
transaction.apply();
}
}
}
}