Merge "Apply pending AppInfo on Activity override change" into sc-dev am: d2dd630204

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15260966

Change-Id: I311409dbd669049ca5cbc46f6f58bb6d0f51de19
This commit is contained in:
TreeHugger Robot
2021-07-13 00:37:28 +00:00
committed by Automerger Merge Worker

View File

@@ -1158,9 +1158,15 @@ public class ResourcesManager {
} else {
activityResources.overrideConfig.unset();
}
// Update the Activity's override display id.
activityResources.overrideDisplayId = displayId;
// If a application info update was scheduled to occur in this process but has not
// occurred yet, apply it now so the resources objects will have updated paths if
// the assets sequence changed.
applyAllPendingAppInfoUpdates();
if (DEBUG) {
Throwable here = new Throwable();
here.fillInStackTrace();