Merge "Fix mismatched parameter of font scale change" into rvc-dev am: 5580360ba8

Change-Id: I0886007c4f60821b87bff68b30654302a6e603c7
This commit is contained in:
Automerger Merge Worker
2020-03-09 10:22:27 +00:00

View File

@@ -680,12 +680,15 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
} }
@Override @Override
public void onChange(boolean selfChange, Uri uri, @UserIdInt int userId) { public void onChange(boolean selfChange, Iterable<Uri> uris, int flags,
if (mFontScaleUri.equals(uri)) { @UserIdInt int userId) {
updateFontScaleIfNeeded(userId); for (Uri uri : uris) {
} else if (mHideErrorDialogsUri.equals(uri)) { if (mFontScaleUri.equals(uri)) {
synchronized (mGlobalLock) { updateFontScaleIfNeeded(userId);
updateShouldShowDialogsLocked(getGlobalConfiguration()); } else if (mHideErrorDialogsUri.equals(uri)) {
synchronized (mGlobalLock) {
updateShouldShowDialogsLocked(getGlobalConfiguration());
}
} }
} }
} }