Merge "Fix issue where existing Activity Resources references would not update" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c1ff12eccd
@@ -451,15 +451,8 @@ public class ResourcesManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
final ActivityResources activityResources =
|
// Force the creation of an ActivityResourcesStruct.
|
||||||
getOrCreateActivityResourcesStructLocked(
|
getOrCreateActivityResourcesStructLocked(activityToken);
|
||||||
activityToken);
|
|
||||||
|
|
||||||
if (overrideConfig != null) {
|
|
||||||
activityResources.overrideConfig.setTo(overrideConfig);
|
|
||||||
} else {
|
|
||||||
activityResources.overrideConfig.setToDefaults();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update any existing Activity Resources references.
|
// Update any existing Activity Resources references.
|
||||||
|
|||||||
Reference in New Issue
Block a user