aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-11-18 10:03:14 -0800
committerScott Jackson <daneren2005@gmail.com>2014-11-18 10:03:14 -0800
commit082ae55593a85fb6085d213305fecf8eb93baca2 (patch)
tree3641f3caf1d6bc6d209fcda6d0b7fb6378776e47 /src
parent9dc01bac041d654eca08d4f7ee6f903116f8666e (diff)
downloaddsub-082ae55593a85fb6085d213305fecf8eb93baca2.tar.gz
dsub-082ae55593a85fb6085d213305fecf8eb93baca2.tar.bz2
dsub-082ae55593a85fb6085d213305fecf8eb93baca2.zip
Make notification public to always show on lock screen
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/util/Notifications.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/util/Notifications.java b/src/github/daneren2005/dsub/util/Notifications.java
index 5f64c602..3eace1dd 100644
--- a/src/github/daneren2005/dsub/util/Notifications.java
+++ b/src/github/daneren2005/dsub/util/Notifications.java
@@ -69,6 +69,9 @@ public final class Notifications {
notification.bigContentView = expandedContentView;
notification.priority = Notification.PRIORITY_HIGH;
}
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
+ notification.visibility = Notification.VISIBILITY_PUBLIC;
+ }
RemoteViews smallContentView = new RemoteViews(context.getPackageName(), R.layout.notification);
setupViews(smallContentView, context, song, false, playing, remote);