Merge "Fix LingerMonitor notification rate limiting"
am: 822d2b5991
Change-Id: I68800c06e8d4413b2e46176a12dc60b436277653
This commit is contained in:
@@ -90,6 +90,8 @@ public class LingerMonitor {
|
|||||||
mNotifier = notifier;
|
mNotifier = notifier;
|
||||||
mDailyLimit = dailyLimit;
|
mDailyLimit = dailyLimit;
|
||||||
mRateLimitMillis = rateLimitMillis;
|
mRateLimitMillis = rateLimitMillis;
|
||||||
|
// Ensure that (now - mFirstNotificationMillis) >= rateLimitMillis at first
|
||||||
|
mFirstNotificationMillis = -rateLimitMillis;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static HashMap<String, Integer> makeTransportToNameMap() {
|
private static HashMap<String, Integer> makeTransportToNameMap() {
|
||||||
|
|||||||
Reference in New Issue
Block a user