diff options
| author | 2023-06-08 07:28:04 +0000 | |
|---|---|---|
| committer | 2023-06-08 07:28:04 +0000 | |
| commit | 718d6a4ca06fbbd53908796b7753aee2a7eee431 (patch) | |
| tree | 3454fe3075e842ae4fdf15a282333998f5f43265 | |
| parent | f4f5ce437c9718f4cf898fe3d00e51ce85a75b13 (diff) | |
Fixing the rapid activity launch count always increase
The diff was negative value due to the typo and therefore
always increase the launch count
Bug: 281986118
Test: CellBroadcastUiTest
Change-Id: Ib8960f4e7cc6050352657286416785db8e060f3f
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowProcessController.java | 2 |
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) { |