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

Commit bc88c4cd authored by Adam He's avatar Adam He
Browse files

Small fix to permanently bind augmented autofill service.

Bug: 124456706
Test: manual verification
Change-Id: Id363332cfd2eede7aab0f4e696c3bea18af24687
parent dd6eb81b
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -1096,14 +1096,17 @@ final class AutofillManagerServiceImpl
     * Called when the {@link #mAugmentedAutofillResolver} changed (among other places).
     */
    private void updateRemoteAugmentedAutofillService(@Nullable String serviceName) {
        if (serviceName == null) {
            if (sVerbose) Slog.v(TAG, "updateRemoteAugmentedAutofillService(): time's up!");
        synchronized (mLock) {
            if (mRemoteAugmentedAutofillService != null) {
                if (sVerbose) {
                    Slog.v(TAG, "updateRemoteAugmentedAutofillService(): "
                            + "destroying old remote service");
                }
                mRemoteAugmentedAutofillService.destroy();
                mRemoteAugmentedAutofillService = null;
            }
            }

            mRemoteAugmentedAutofillService = getRemoteAugmentedAutofillServiceLocked();
        }
    }