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,7 +632,11 @@ public class NSClientService extends Service {
if (sgv.getMills() > latestDateInReceivedData)
latestDateInReceivedData = sgv.getMills();
}
BroadcastSgvs.handleNewSgv(sgvs, MainApp.instance().getApplicationContext(), isDelta);
//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);
}
MainApp.bus().post(new EventNSClientNewLog("LAST", DateUtil.dateAndTimeString(latestDateInReceivedData)));
} catch (JSONException e) {