Merge "Fixing the rapid activity launch count always increase" into udc-dev am: 218a3807bb

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

Change-Id: Iea56efe6bf6786a21337e7db14a8103fe4f163bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Louis Chang
2023-06-12 01:20:48 +00:00
committed by Automerger Merge Worker

View File

@@ -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) {