Merge "Fix LingerMonitor notification rate limiting"
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