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

Commit e42231be authored by Joanne Chung's avatar Joanne Chung Committed by Android (Google) Code Review
Browse files

Merge "Fix onConnet() is called twice for AugmentedAutofillService."

parents 3de59f57 9cfd0227
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -288,7 +288,14 @@ public final class AutofillManagerService
            boolean isTemporary) {
        mAugmentedAutofillState.setServiceInfo(userId, serviceName, isTemporary);
        synchronized (mLock) {
            getServiceForUserLocked(userId).updateRemoteAugmentedAutofillService();
            final AutofillManagerServiceImpl service = peekServiceForUserLocked(userId);
            if (service == null) {
                // If we cannot get the service from the services cache, it will call
                // updateRemoteAugmentedAutofillService() finally. Skip call this update again.
                getServiceForUserLocked(userId);
            } else {
                service.updateRemoteAugmentedAutofillService();
            }
        }
    }