mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 09:17:29 +01:00
parent
8080734470
commit
fd03dac5cd
@ -285,6 +285,11 @@ public class NotificationListener extends NotificationListenerService {
|
||||
|
||||
NotificationCompat.WearableExtender wearableExtender = new NotificationCompat.WearableExtender(notification);
|
||||
List<NotificationCompat.Action> actions = wearableExtender.getActions();
|
||||
|
||||
if (actions.isEmpty() && notificationSpec.type == NotificationType.TELEGRAM) {
|
||||
return; // workaround for duplicate telegram message
|
||||
}
|
||||
|
||||
for (NotificationCompat.Action act : actions) {
|
||||
if (act != null && act.getRemoteInputs() != null) {
|
||||
LOG.info("found wearable action: " + act.getTitle() + " " + sbn.getTag());
|
||||
|
Loading…
Reference in New Issue
Block a user