mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-24 10:56:50 +01:00
VoIP calls: ignore notifications with only one action, assuming it is an outgoing call
(Might improve #1780)
This commit is contained in:
parent
b2cc27ac9f
commit
01d19e5384
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user