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

Commit 72c3f2bf authored by TYM Tsai's avatar TYM Tsai
Browse files

Fixed canceling fill request caused removal current session

A quick switch focus causes the fill request to be canceled and the
current session is deleted when it is considered to be a failure.
The new fill request will not work after that. To prevent this issue,
this change is to avoid cancelng request is treated as a failure.

Fixes: 135486325
Test: atest CtsAutoFillServiceTestCases
Change-Id: I213f79da5b248e46f5be1a940ceebb7ee99e00f3
parent dc64959b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -187,10 +187,9 @@ final class RemoteFillService extends ServiceConnector.Impl<IAutoFillService> {
                if (err instanceof TimeoutException) {
                    dispatchCancellationSignal(cancellationSink.get());
                    mCallbacks.onFillRequestTimeout(request.getId());
                } else {
                    if (err instanceof CancellationException) {
                } else if (err instanceof CancellationException) {
                    dispatchCancellationSignal(cancellationSink.get());
                    }
                } else {
                    mCallbacks.onFillRequestFailure(request.getId(), err.getMessage());
                }
            }