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:
Daniele Gobbetti 2015-07-25 21:14:18 +02:00
parent 716bbc7b78
commit 8f840df5f6
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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)