1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 03:16:51 +01:00

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

This commit is contained in:
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;
break;
case "com.moez.QKSMS":
case "com.android.mms":
notificationSpec.type = NotificationType.SMS;
break;
case "eu.siacs.conversations":

View File

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