From d513a5305a4e5efa1617f19e1965f151681443f5 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 20 Mar 2019 20:50:06 +0000 Subject: [PATCH] Show device name in MPRIS notification --- .../kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java index fe5ffe10..30ebd8e3 100644 --- a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java +++ b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java @@ -326,7 +326,8 @@ public class MprisMediaSession implements SharedPreferences.OnSharedPreferenceCh .setSmallIcon(R.drawable.ic_play_white) .setShowWhen(false) .setColor(service.getResources().getColor(R.color.primary)) - .setVisibility(androidx.core.app.NotificationCompat.VISIBILITY_PUBLIC); + .setVisibility(androidx.core.app.NotificationCompat.VISIBILITY_PUBLIC) + .setSubText(service.getDevice(notificationDevice).getName()); if (!notificationPlayer.getTitle().isEmpty()) { notification.setContentTitle(notificationPlayer.getTitle());