mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Ignore com.android.incallui when handling voip call notifications
Hopefully helps with #1881
This commit is contained in:
+1
-1
@@ -467,7 +467,7 @@ public class NotificationListener extends NotificationListenerService {
|
|||||||
private void handleCallNotification(StatusBarNotification sbn) {
|
private void handleCallNotification(StatusBarNotification sbn) {
|
||||||
String app = sbn.getPackageName();
|
String app = sbn.getPackageName();
|
||||||
LOG.debug("got call from: " + app);
|
LOG.debug("got call from: " + app);
|
||||||
if(app.equals("com.android.dialer")) {
|
if (app.equals("com.android.dialer") || app.equals("com.android.incallui")) {
|
||||||
LOG.debug("Ignoring non-voip call");
|
LOG.debug("Ignoring non-voip call");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user