Merge "Fixing the rapid activity launch count always increase" into udc-dev

This commit is contained in:
Louis Chang
2023-06-12 00:34:24 +00:00
committed by Android (Google) Code Review

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