mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 11:17:33 +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();
|
||||
if (GBApplication.isRunningLollipopOrLater()) {
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user