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

Commit 6a6cd3fa authored by Felipe Leme's avatar Felipe Leme
Browse files

Flush out existing sessions when the Autofill service is changed.

Test: LoginActivityTest.testPopupGoesAwayWhenServiceIsChanged

Fixes: 62836529

Change-Id: I9e6fb368f8c2b723668fbcb5ccb57d519ee149f8
parent 5b8bc166
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -458,6 +458,7 @@ public final class AutofillManagerService extends SystemService {
    private void updateCachedServiceLocked(int userId, boolean disabled) {
        AutofillManagerServiceImpl service = getServiceForUserLocked(userId);
        if (service != null) {
            service.destroySessionsLocked();
            service.updateLocked(disabled);
            if (!service.isEnabled()) {
                removeCachedServiceLocked(userId);