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