summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Louis Chang <louischang@google.com> 2023-06-12 02:03:02 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-06-12 02:03:02 +0000
commitf8ab528868d3e6768a89b690fe89a4b19ca5c672 (patch)
tree83e9f2919a3838f3f58941225b2ab024aa15cfa4
parent3053909933181dfe6a8949f86bad5781b266c31a (diff)
parentcdedabe2b002c708ef1025416e26f73cc69932fc (diff)
Merge "Fixing the rapid activity launch count always increase" into udc-dev am: 218a3807bb am: cdedabe2b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23629236 Change-Id: Ic7334824014543336223556a27c84b7b52cf22c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--services/core/java/com/android/server/wm/WindowProcessController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/WindowProcessController.java b/services/core/java/com/android/server/wm/WindowProcessController.java
index 3672820c13ad..d7d2b4e9dde2 100644
--- a/services/core/java/com/android/server/wm/WindowProcessController.java
+++ b/services/core/java/com/android/server/wm/WindowProcessController.java
@@ -563,7 +563,7 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
return;
}
- final long diff = lastLaunchTime - launchTime;
+ final long diff = launchTime - lastLaunchTime;
if (diff < RAPID_ACTIVITY_LAUNCH_MS) {
mRapidActivityLaunchCount++;
} else if (diff >= RESET_RAPID_ACTIVITY_LAUNCH_MS) {