Merge "Fix incorrect message being sent for all intents." into tm-qpr-dev am: 1693f17667

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

Change-Id: Iea148201501a1bb77fac39fc0f6151ea7b7a301c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-12-15 21:26:19 +00:00
committed by Automerger Merge Worker

View File

@@ -2134,9 +2134,11 @@ public class AppStandbyController
} }
// component-level enable/disable can affect bucketing, so we always // component-level enable/disable can affect bucketing, so we always
// reevaluate that for any PACKAGE_CHANGED // reevaluate that for any PACKAGE_CHANGED
if (Intent.ACTION_PACKAGE_CHANGED.equals(action)) {
mHandler.obtainMessage(MSG_CHECK_PACKAGE_IDLE_STATE, userId, -1, pkgName) mHandler.obtainMessage(MSG_CHECK_PACKAGE_IDLE_STATE, userId, -1, pkgName)
.sendToTarget(); .sendToTarget();
} }
}
if ((Intent.ACTION_PACKAGE_REMOVED.equals(action) || if ((Intent.ACTION_PACKAGE_REMOVED.equals(action) ||
Intent.ACTION_PACKAGE_ADDED.equals(action))) { Intent.ACTION_PACKAGE_ADDED.equals(action))) {
if (intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) { if (intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {