diff options
| author | 2021-07-12 23:46:03 +0000 | |
|---|---|---|
| committer | 2021-07-12 23:46:03 +0000 | |
| commit | d2dd63020494feab8b17931c8f8810bb020d1526 (patch) | |
| tree | b12302d0a1f792d73ea2ad1d62e3548784cd59a0 | |
| parent | f59bf68628da920a395e9c74919a154ae3c70d9c (diff) | |
| parent | 290e51fce367918e80b630308481edd40255f9e6 (diff) | |
Merge "Apply pending AppInfo on Activity override change" into sc-dev
| -rw-r--r-- | core/java/android/app/ResourcesManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/app/ResourcesManager.java b/core/java/android/app/ResourcesManager.java index 20afffc1f562..198c33e83707 100644 --- a/core/java/android/app/ResourcesManager.java +++ b/core/java/android/app/ResourcesManager.java @@ -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(); |