1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

VoIP calls: ignore notifications with only one action, assuming it is an outgoing call

(Might improve #1780)
This commit is contained in:
Andreas Shimokawa 2020-01-26 19:28:19 +01:00
parent b2cc27ac9f
commit 01d19e5384

View File

@ -451,6 +451,10 @@ public class NotificationListener extends NotificationListenerService {
for (Notification.Action action : noti.actions) {
LOG.info("Found call action: " + action.title);
}
if (noti.actions.length == 1) {
LOG.info("There is only one call action, assuming outgoing call and ignoring");
return;
}
/*try {
LOG.info("Executing first action");
noti.actions[0].actionIntent.send();