Merge "Fix LingerMonitor notification rate limiting"

This commit is contained in:
Treehugger Robot 2018-11-13 09:36:39 +00:00 • committed by Gerrit Code Review
commit 822d2b5991

View file

@ -90,6 +90,8 @@ public class LingerMonitor {
mNotifier = notifier;
mDailyLimit = dailyLimit;
mRateLimitMillis = rateLimitMillis;
// Ensure that (now - mFirstNotificationMillis) >= rateLimitMillis at first
mFirstNotificationMillis = -rateLimitMillis;
}
private static HashMap<String, Integer> makeTransportToNameMap() {