set type to SMS when receiving an SMS via generic notification listener

master
Andreas Shimokawa 2015-09-24 17:26:40 +02:00
parent 1d41f2f8e4
commit 94ad7f2eb9
2 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ public class NotificationListener extends NotificationListenerService {
notificationSpec.type = NotificationType.EMAIL; notificationSpec.type = NotificationType.EMAIL;
break; break;
case "com.moez.QKSMS": case "com.moez.QKSMS":
case "com.android.mms":
notificationSpec.type = NotificationType.SMS; notificationSpec.type = NotificationType.SMS;
break; break;
case "eu.siacs.conversations": case "eu.siacs.conversations":

View File

@ -46,6 +46,7 @@ public class PebbleReceiver extends BroadcastReceiver {
} }
NotificationSpec notificationSpec = new NotificationSpec(); NotificationSpec notificationSpec = new NotificationSpec();
notificationSpec.id = -1;
String notificationData = intent.getStringExtra("notificationData"); String notificationData = intent.getStringExtra("notificationData");
try { try {