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

Commit bf272063 authored by wangmingming1's avatar wangmingming1 Committed by Haoran Zhang
Browse files

[AutoFill] destroy mRemoteInlineSuggestionRenderService after connection lost



Bug: 327123692
Test: see steps in b/327123692
Test: atest CtsAutoFillServiceTestCases

Signed-off-by: default avatarwangmingming1 <wangmingming1@xiaomi.corp-partner.google.com>
(cherry picked from https://partner-android-review.googlesource.com/q/commit:268308c45fda18a1fc266abc8c76147cca6aaf78)

Change-Id: I3694d118ad12fd3b7a02e5602154b7cd7180bd2c
parent 83fbe2e2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1672,9 +1672,10 @@ final class AutofillManagerServiceImpl

        @Override // from InlineSuggestionRenderCallbacksImpl
        public void onServiceDied(@NonNull RemoteInlineSuggestionRenderService service) {
            // Don't do anything; eventually the system will bind to it again...
            Slog.w(TAG, "remote service died: " + service);
            mRemoteInlineSuggestionRenderService = null;
            synchronized (mLock) {
                resetExtServiceLocked();
            }
        }
    }