Merge "Ensures RotationRequest#mLock can only accquried by main thread." into sc-dev
This commit is contained in:
@@ -126,14 +126,12 @@ class RemoteRotationResolverService extends ServiceConnector.Impl<IRotationResol
|
||||
|
||||
|
||||
void cancelInternal() {
|
||||
synchronized (mLock) {
|
||||
if (mIsFulfilled) {
|
||||
return;
|
||||
}
|
||||
mIsFulfilled = true;
|
||||
}
|
||||
Handler.getMain().post(() -> {
|
||||
synchronized (mLock) {
|
||||
if (mIsFulfilled) {
|
||||
return;
|
||||
}
|
||||
mIsFulfilled = true;
|
||||
try {
|
||||
if (mCancellation != null) {
|
||||
mCancellation.cancel();
|
||||
|
||||
Reference in New Issue
Block a user