Merge "Fix issue where existing Activity Resources references would not update" into nyc-dev

This commit is contained in:
Adam Lesinski
2016-05-05 23:23:41 +00:00
committed by Android (Google) Code Review

View File

@@ -451,15 +451,8 @@ public class ResourcesManager {
}
synchronized (this) {
final ActivityResources activityResources =
getOrCreateActivityResourcesStructLocked(
activityToken);
if (overrideConfig != null) {
activityResources.overrideConfig.setTo(overrideConfig);
} else {
activityResources.overrideConfig.setToDefaults();
}
// Force the creation of an ActivityResourcesStruct.
getOrCreateActivityResourcesStructLocked(activityToken);
}
// Update any existing Activity Resources references.