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

Commit 1c1563cf authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "Explicitly invalidate getUserInfo under its flag" into main

parents bf653d0b b74952eb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -6501,7 +6501,11 @@ public class UserManager {
     * @hide
     */
    public static final void invalidateCacheOnUserDataChanged() {
        if (android.multiuser.Flags.cacheProfilesReadOnly()) {
        if (android.multiuser.Flags.cacheProfilesReadOnly()
                || android.multiuser.Flags.cacheUserInfoReadOnly()) {
            // TODO(b/383175685): Rename the invalidation call to make it clearer that it
            // invalidates the caches for both getProfiles and getUserInfo (since they both use the
            // same user_manager_user_data CachedProperty.api).
            UserManagerCache.invalidateProfiles();
        }
    }