Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Commit 88d6ac0

Browse files
author
TebbeUbben
committed
Reduce priority auf ActiveAlertMessages
1 parent 5857f63 commit 88d6ac0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/sugar/free/sightremote/services/AlertService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import lombok.Setter;
1818
import sugar.free.sightparser.SerializationUtils;
1919
import sugar.free.sightparser.applayer.descriptors.AlertStatus;
20+
import sugar.free.sightparser.applayer.descriptors.MessagePriority;
2021
import sugar.free.sightparser.applayer.descriptors.alerts.Alert;
2122
import sugar.free.sightparser.applayer.descriptors.alerts.Error7ElectronicError;
2223
import sugar.free.sightparser.applayer.messages.remote_control.DismissAlertMessage;
@@ -63,6 +64,8 @@ public void onStatusChange(Status status, long statusTime, long waitTime) {
6364
if (status == Status.CONNECTED) {
6465
if (fetchTimer != null) return;
6566
fetchTimer = new Timer(false);
67+
ActiveAlertMessage activeAlertMessage = new ActiveAlertMessage();
68+
activeAlertMessage.setMessagePriority(MessagePriority.LOWER);
6669
fetchTimer.schedule(new TimerTask() {
6770
@Override
6871
public void run() {

0 commit comments

Comments
 (0)