mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-11 15:48:31 +02:00
set type to SMS when receiving an SMS via generic notification listener
This commit is contained in:
parent
1d41f2f8e4
commit
94ad7f2eb9
@ -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":
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user