mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 04:46:51 +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) {
|
for (Notification.Action action : noti.actions) {
|
||||||
LOG.info("Found call action: " + action.title);
|
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 {
|
/*try {
|
||||||
LOG.info("Executing first action");
|
LOG.info("Executing first action");
|
||||||
noti.actions[0].actionIntent.send();
|
noti.actions[0].actionIntent.send();
|
||||||
|
Loading…
Reference in New Issue
Block a user