Skip to content

Commit

Permalink
Reduce priority auf ActiveAlertMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
TebbeUbben committed Jun 2, 2018
1 parent 5857f63 commit 88d6ac0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import lombok.Setter;
import sugar.free.sightparser.SerializationUtils;
import sugar.free.sightparser.applayer.descriptors.AlertStatus;
import sugar.free.sightparser.applayer.descriptors.MessagePriority;
import sugar.free.sightparser.applayer.descriptors.alerts.Alert;
import sugar.free.sightparser.applayer.descriptors.alerts.Error7ElectronicError;
import sugar.free.sightparser.applayer.messages.remote_control.DismissAlertMessage;
Expand Down Expand Up @@ -63,6 +64,8 @@ public void onStatusChange(Status status, long statusTime, long waitTime) {
if (status == Status.CONNECTED) {
if (fetchTimer != null) return;
fetchTimer = new Timer(false);
ActiveAlertMessage activeAlertMessage = new ActiveAlertMessage();
activeAlertMessage.setMessagePriority(MessagePriority.LOWER);
fetchTimer.schedule(new TimerTask() {
@Override
public void run() {
Expand Down

0 comments on commit 88d6ac0

Please sign in to comment.