1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-17 02:44:04 +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:
Andreas Shimokawa 2021-03-11 23:53:19 +01:00
parent 2cbb42ba53
commit faf8ca55c1

View File

@ -921,6 +921,10 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
public void onDeleteNotification(int id) {
super.onDeleteNotification(id);
if (connectionMode == CONNECTION_MODE.NOT_AUTHENTICATED) {
return;
}
// send notification dismissal message to watch
try {
queueWrite(new DismissTextNotificationRequest(id, this));