Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fca2a555 authored by Yi Jiang's avatar Yi Jiang
Browse files

Don't cancel the previous request if it's fulfilled.

In Rotation Resolver Manager, we incorrectly send addtional 'cancelled'
results to WOL. This change fixes that issue.

Bug: 191792497
Test: maually tested the feature.

Change-Id: I5de023d7cc5b8429d11d7037afa9d32a21f55762
parent 4b61a185
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ final class RotationResolverManagerPerUserService extends
        ensureRemoteServiceInitiated();

        // Cancel the previous on-going request.
        if (mCurrentRequest != null) {
        if (mCurrentRequest != null && !mCurrentRequest.mIsFulfilled) {
            cancelLocked();
        }