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

Commit 9b8918c8 authored by Anna Bauza's avatar Anna Bauza
Browse files

getUserInfo cache was not invalidated on user add/remove

Fix JavaCrash in SettingsProvider

Bug: 401890175
Flag: EXEMPT bugfix
Test: atest com.android.settings.privatespace.PrivateSpaceMaintainerTest#profileRemovedFromUserManager_privateSpaceNoLongerExists
Change-Id: I17dfdf495b760dfaa973f2ce4bc267b6ea8e08e4
parent d7c15565
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6618,6 +6618,7 @@ public class UserManager {
        if (android.multiuser.Flags.cacheProfileParentReadOnly()) {
            UserManagerCache.invalidateProfileParent();
        }
        invalidateCacheOnUserDataChanged();
        invalidateEnabledProfileIds();
        invalidateUserRestriction();
    }