mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
VoIP calls: ignore notifications with only one action, assuming it is an outgoing call
(Might improve #1780)
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user