From 837c14026379e09a319df79ef39cf6e28fd3d8fd Mon Sep 17 00:00:00 2001 From: t-m-w <7275539+t-m-w@users.noreply.github.com> Date: Tue, 20 Oct 2020 14:44:26 -0700 Subject: 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+. --- app/src/main/java/github/daneren2005/dsub/util/Notifications.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src') 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. -- cgit v1.2.3