mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-14 19:57:32 +01:00
Stop an incoming call notification when a VoIP call is missed
This commit is contained in:
parent
5e60970b06
commit
a8638a52fa
@ -281,7 +281,8 @@ public class NotificationListener extends NotificationListenerService {
|
|||||||
Prefs prefs = GBApplication.getPrefs();
|
Prefs prefs = GBApplication.getPrefs();
|
||||||
if (GBApplication.isRunningLollipopOrLater()) {
|
if (GBApplication.isRunningLollipopOrLater()) {
|
||||||
if (NotificationCompat.CATEGORY_CALL.equals(sbn.getNotification().category)
|
if (NotificationCompat.CATEGORY_CALL.equals(sbn.getNotification().category)
|
||||||
&& prefs.getBoolean("notification_support_voip_calls", false)) {
|
&& prefs.getBoolean("notification_support_voip_calls", false)
|
||||||
|
&& sbn.isOngoing()) {
|
||||||
handleCallNotification(sbn);
|
handleCallNotification(sbn);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user