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: Idc5de41e31bccec58770fc21100f465b9b712b17 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user