aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-m-w <7275539+t-m-w@users.noreply.github.com>2020-10-20 14:44:26 -0700
committerGitHub <noreply@github.com>2020-10-20 14:44:26 -0700
commit837c14026379e09a319df79ef39cf6e28fd3d8fd (patch)
treed09f0a17ed829bad2ac5bf006e30d3aa5a5db83c
parent1c2d783f4bc7ad16b7cd4e323317d10e0b20432a (diff)
downloaddsub-837c14026379e09a319df79ef39cf6e28fd3d8fd.tar.gz
dsub-837c14026379e09a319df79ef39cf6e28fd3d8fd.tar.bz2
dsub-837c14026379e09a319df79ef39cf6e28fd3d8fd.zip
Show mediastyle notification on secure lockscreen
Allow mediastyle playback notification to show up properly on lockscreens that hide sensitive notifications. For DSub's non-mediastyle implementation, this is already done on line 162. No need to check for LOLLIPOP+ because usingMediaStyleNotification already requires LOLLIPOP+.
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/Notifications.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/Notifications.java b/app/src/main/java/github/daneren2005/dsub/util/Notifications.java
index e1781c47..88bc8138 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/Notifications.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/Notifications.java
@@ -99,6 +99,7 @@ public final class Notifications {
.setSmallIcon(R.drawable.stat_notify_playing)
.setContentTitle(title)
.setContentText(artist + " - " + album)
+ .setVisibility(Notification.VISIBILITY_PUBLIC)
.setStyle(mediaStyle);
// Set the album art.