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