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

am: c1ff12eccd

* commit 'c1ff12eccd0e48ff7feab62387e60ae4010a3cc9':
  Fix issue where existing Activity Resources references would not update

Change-Id: I1b411b89dae0aa623d796ab2ab7dabb52a6e28c0
This commit is contained in:
Adam Lesinski
2016-05-05 23:35:31 +00:00
committed by android-build-merger

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.