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