[READ-ONLY] Mirror of https://github.com/probablykasper/notifier. Android app for scheduling notifications
android app flutter notifications
0

Configure Feed

Select the types of activity you want to include in your feed.

Fixed updating notifications causing already-fired ones to disappear

For some reason I deleted the firedCount incrementor at some point

Kasper (Jul 9, 2019, 10:00 PM +0200) 4d81de9a 4f5307a6

+3 -1
+3 -1
lib/models/list.dart
··· 239 239 weekdays: List<bool>.from(notificationItem['weekdays']), 240 240 ); 241 241 242 - // Only set date to nextDate if the notification has already fired. The date needs to be the closest future notification date. When notifications are scheduled for the first time, their date should therefore not be updated. 243 242 if (notificationItem['date'] < DateTime.now().millisecondsSinceEpoch) { 243 + // Only set date to nextDate if the notification has already fired. The date needs to be the closest future notification date. When notifications are scheduled for the first time, their date should therefore not be updated. 244 244 date = nextDate; 245 245 notificationItem['date'] = nextDate.millisecondsSinceEpoch; 246 + 247 + notificationItem['firedCount']++; 246 248 } 247 249 248 250 String oneDigitFiredCount = (notificationItem['firedCount'] % 10).toString();