1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 22:51:02 +00:00

Added car notification extender

This commit is contained in:
M66B 2021-04-05 20:00:44 +02:00
parent bfbacfc21d
commit dc4df306c7

View file

@ -4564,12 +4564,15 @@ class Core {
} }
// https://developer.android.com/training/wearables/notifications // https://developer.android.com/training/wearables/notifications
// https://developer.android.com/reference/android/app/Notification.WearableExtender // https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action.WearableExtender
mbuilder.extend(new NotificationCompat.WearableExtender() mbuilder.extend(new NotificationCompat.WearableExtender()
.addActions(wactions) .addActions(wactions)
.setDismissalId(BuildConfig.APPLICATION_ID + ":" + id) .setDismissalId(BuildConfig.APPLICATION_ID + ":" + id)
/* .setBridgeTag(id < 0 ? "header" : "body") */); /* .setBridgeTag(id < 0 ? "header" : "body") */);
// https://developer.android.com/reference/androidx/car/app/notification/CarAppExtender
mbuilder.extend(new NotificationCompat.CarExtender());
notifications.add(mbuilder); notifications.add(mbuilder);
} }