Merge "Correctly remove drag surface when perform drag failed" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b67b54fc63
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user