Stop an incoming call notification when a VoIP call is missed

This commit is contained in:
Dmitry Markin
2020-06-20 11:52:49 +03:00
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;
}