Disabling staledata alarm on new sgv values fromNSClient

This commit is contained in:
Roumen Georgiev 2017-11-28 16:15:25 +02:00 committed by GitHub
parent eb593a4557
commit 723cb33497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -632,6 +632,10 @@ public class NSClientService extends Service {
if (sgv.getMills() > latestDateInReceivedData) if (sgv.getMills() > latestDateInReceivedData)
latestDateInReceivedData = sgv.getMills(); latestDateInReceivedData = sgv.getMills();
} }
//log.debug("Alarm for stale data active:"+Notification.isAlarmForStaleData());
if(Notification.isAlarmForStaleData()){
MainApp.bus().post(new EventDismissNotification(Notification.NSALARM));
}
BroadcastSgvs.handleNewSgv(sgvs, MainApp.instance().getApplicationContext(), isDelta); BroadcastSgvs.handleNewSgv(sgvs, MainApp.instance().getApplicationContext(), isDelta);
} }
MainApp.bus().post(new EventNSClientNewLog("LAST", DateUtil.dateAndTimeString(latestDateInReceivedData))); MainApp.bus().post(new EventNSClientNewLog("LAST", DateUtil.dateAndTimeString(latestDateInReceivedData)));