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

This commit is contained in:
TreeHugger Robot
2021-07-12 23:46:03 +00:00
committed by Android (Google) Code Review

View File

@@ -1158,9 +1158,15 @@ public class ResourcesManager {
} else { } else {
activityResources.overrideConfig.unset(); activityResources.overrideConfig.unset();
} }
// Update the Activity's override display id. // Update the Activity's override display id.
activityResources.overrideDisplayId = displayId; 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) { if (DEBUG) {
Throwable here = new Throwable(); Throwable here = new Throwable();
here.fillInStackTrace(); here.fillInStackTrace();