mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-26 03:46:49 +01:00
Also ignore com.google.android.dialer, not only com.android.dialer where appropriate
Should fix #2209
This commit is contained in:
parent
ceb99531d3
commit
5746c9aa63
@ -472,7 +472,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") || app.equals("com.android.incallui")) {
|
if (app.equals("com.android.dialer") || app.equals("com.android.incallui") || app.equals("com.google.android.dialer")) {
|
||||||
LOG.debug("Ignoring non-voip call");
|
LOG.debug("Ignoring non-voip call");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -786,6 +786,7 @@ public class NotificationListener extends NotificationListenerService {
|
|||||||
if (source.equals("android") ||
|
if (source.equals("android") ||
|
||||||
source.equals("com.android.systemui") ||
|
source.equals("com.android.systemui") ||
|
||||||
source.equals("com.android.dialer") ||
|
source.equals("com.android.dialer") ||
|
||||||
|
source.equals("com.google.android.dialer") ||
|
||||||
source.equals("com.cyanogenmod.eleven")) {
|
source.equals("com.cyanogenmod.eleven")) {
|
||||||
LOG.info("Ignoring notification, is a system event");
|
LOG.info("Ignoring notification, is a system event");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user