Set GB notification visibility to public.
This way on android 5 the status of the connection is shown also on the lockscreen even if the user chose to hide sensible content of the notifications.
This commit is contained in:
parent
716bbc7b78
commit
8f840df5f6
|
@ -1,6 +1,7 @@
|
|||
###Changelog
|
||||
|
||||
####Version 0.4.4
|
||||
* Set GadgetBridge notification visibility to public, to show the connection status on the lockscreen
|
||||
* Support for backup up and restoring of the activity database (via Debug activity)
|
||||
* Support for graceful upgrades and downgrades, keeping your activity database intact
|
||||
* Pebble: experimental support for dismissing (all) notifications via actionable notifications (disabled by default)
|
||||
|
|
|
@ -49,6 +49,7 @@ public class GB {
|
|||
notificationIntent, 0);
|
||||
|
||||
return new NotificationCompat.Builder(context)
|
||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||
.setContentTitle(context.getString(R.string.app_name))
|
||||
.setTicker(text)
|
||||
.setContentText(text)
|
||||
|
|
Loading…
Reference in New Issue