1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00

Set notification to minimal priority

Pebble app is not showing in status bar and on lockscreen. This change is for GadgetBridge to have the same behavior.
This commit is contained in:
Yar 2016-12-15 22:58:56 +03:00 committed by Daniele Gobbetti
parent 09cc0134db
commit 5c8f02d054

View File

@ -61,6 +61,7 @@ public class GB {
.setContentText(text)
.setSmallIcon(connected ? R.drawable.ic_notification : R.drawable.ic_notification_disconnected)
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_MIN)
.setOngoing(true);
if (GBApplication.isRunningLollipopOrLater()) {
builder.setVisibility(Notification.VISIBILITY_PUBLIC);