Merge "Clear identity when releasing display resources." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f38af45079
@@ -987,8 +987,12 @@ final class VirtualDeviceImpl extends IVirtualDevice.Stub
|
||||
"Virtual device doesn't have a virtual display with ID " + displayId);
|
||||
}
|
||||
|
||||
releaseOwnedVirtualDisplayResources(virtualDisplayWrapper);
|
||||
|
||||
final long ident = Binder.clearCallingIdentity();
|
||||
try {
|
||||
releaseOwnedVirtualDisplayResources(virtualDisplayWrapper);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(ident);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user