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
This commit is contained in:
Louis Chang
2023-06-08 07:28:04 +00:00
parent f4f5ce437c
commit 718d6a4ca0

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