[SettingsProvider] fix notify profile cache for clone-from-parent settings

This line was in the wrong place with the wrong params.. It was never an
issue until we refactored the caching mechanism. Fixing it to correctly
notify the profile user's settings caches.

BUG: 284081256
Test: manual with a test app running in the work profile
Change-Id: Ie7b6558e682b7c2d6f6e091e3acc4a63ebc7c5de
This commit is contained in:
Songchun Fan
2023-06-21 11:31:09 -07:00
parent 152db1f9dc
commit af79c1f5c6

View File

@@ -3558,11 +3558,11 @@ public class SettingsProvider extends ContentProvider {
if (isSecureSettingsKey(key)) {
maybeNotifyProfiles(getTypeFromKey(key), userId, uri, name,
sSecureCloneToManagedSettings);
maybeNotifyProfiles(SETTINGS_TYPE_SYSTEM, userId, uri, name,
sSystemCloneFromParentOnDependency.values());
} else if (isSystemSettingsKey(key)) {
maybeNotifyProfiles(getTypeFromKey(key), userId, uri, name,
sSystemCloneToManagedSettings);
maybeNotifyProfiles(SETTINGS_TYPE_SYSTEM, userId, uri, name,
sSystemCloneFromParentOnDependency.keySet());
}
}