summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorLouis Chang <louischang@google.com>2021-05-04 04:06:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-04 04:06:48 +0000
commit3100c1e4f49aa839b6eec508b10503afc65f28af (patch)
tree79cf1eed3a6ae089bb142f8db53b2b5cfb9b34cc /core/java/android
parent9fb45cc8bb17a18dcc9b70d8fbc9660903cc74d9 (diff)
parent33a43368776004082b491b0f851c4318d12fc4be (diff)
Merge "Do not relaunch bg activities when application info changes" into sc-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/ActivityThread.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index b3e656d30752..ff210e1c0ea6 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -5613,7 +5613,7 @@ public final class ActivityThread extends ClientTransactionHandler
}
/** Performs the activity relaunch locally vs. requesting from system-server. */
- private void handleRelaunchActivityLocally(IBinder token) {
+ public void handleRelaunchActivityLocally(IBinder token) {
final ActivityClientRecord r = mActivities.get(token);
if (r == null) {
Log.w(TAG, "Activity to relaunch no longer exists");
@@ -5977,20 +5977,6 @@ public final class ActivityThread extends ClientTransactionHandler
// Update all affected Resources objects to use new ResourcesImpl
mResourcesManager.applyNewResourceDirsLocked(ai, oldResDirs);
}
-
- ApplicationPackageManager.configurationChanged();
-
- // Trigger a regular Configuration change event, only with a different assetsSeq number
- // so that we actually call through to all components.
- // TODO(adamlesinski): Change this to make use of ActivityManager's upcoming ability to
- // store configurations per-process.
- final Configuration config = mConfigurationController.getConfiguration();
- Configuration newConfig = new Configuration();
- newConfig.assetsSeq = (config != null ? config.assetsSeq : 0) + 1;
- mConfigurationController.handleConfigurationChanged(newConfig, null /* compat */);
-
- // Preserve windows to avoid black flickers when overlays change.
- relaunchAllActivities(true /* preserveWindows */, "handleApplicationInfoChanged");
}
/**