mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Fossil Hybrid HR: Do not try remove notifications from the watch in unauthenticated mode
This does not seem to work and breaks all further communication with the watch.
This commit is contained in:
@@ -921,6 +921,10 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
|||||||
public void onDeleteNotification(int id) {
|
public void onDeleteNotification(int id) {
|
||||||
super.onDeleteNotification(id);
|
super.onDeleteNotification(id);
|
||||||
|
|
||||||
|
if (connectionMode == CONNECTION_MODE.NOT_AUTHENTICATED) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// send notification dismissal message to watch
|
// send notification dismissal message to watch
|
||||||
try {
|
try {
|
||||||
queueWrite(new DismissTextNotificationRequest(id, this));
|
queueWrite(new DismissTextNotificationRequest(id, this));
|
||||||
|
Reference in New Issue
Block a user