diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs
index a75f2c1e..898546be 100644
--- a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs
+++ b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs
@@ -367,12 +367,10 @@ class LoungeApi
m.loungeServiceNode.devices = devices
userName = newDevice.user
- if StringUtils.IsNullOrEmpty(userName)
- userName = newDevice.name
- end if
+ deviceName = newDevice.name
userAvatarUri = newDevice.userAvatarUri
- LoungeDeviceConnected.ShowNotifcation(m.notificationsNode, userName, userAvatarUri)
+ LoungeDeviceConnected.ShowNotifcation(m.notificationsNode, deviceName, userName, userAvatarUri)
end function
function HandleRemoteDisconnected(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) as void
diff --git a/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotification.xml b/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotification.xml
index 38457c27..eb9b9748 100644
--- a/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotification.xml
+++ b/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotification.xml
@@ -2,6 +2,7 @@
+
@@ -20,18 +21,22 @@
translation="[10,10]" />
+ itemSpacings="[5,5]"
+ translation="[100,15]">
+
diff --git a/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotificationUtils.bs b/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotificationUtils.bs
index cd9d04fb..4524c425 100644
--- a/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotificationUtils.bs
+++ b/playlet-lib/src/components/Services/LoungeService/Notifications/DeviceConnectedNotificationUtils.bs
@@ -1,20 +1,23 @@
namespace LoungeDeviceConnected
const NOTIFICATION_NODE_ID = "DeviceConnectedNotification"
- function ShowNotifcation(notifications as object, name as dynamic, thumbnail as dynamic) as void
+ function ShowNotifcation(notifications as object, deviceName as dynamic, userName as dynamic, userAvatarUri as dynamic) as void
notification = notifications.findNode(NOTIFICATION_NODE_ID)
if notification = invalid
notification = notifications.createChild("DeviceConnectedNotification")
notification.id = NOTIFICATION_NODE_ID
end if
- if StringUtils.IsNullOrEmpty(name)
- name = "Device"
+
+ if StringUtils.IsNullOrEmpty(deviceName)
+ deviceName = "Device"
end if
- notification.line1 = name
- if StringUtils.IsNullOrEmpty(thumbnail)
- thumbnail = "pkg:/images/icons/user.png"
+ if StringUtils.IsNullOrEmpty(userAvatarUri)
+ userAvatarUri = "pkg:/images/icons/user.png"
end if
- notification.thumbnail = thumbnail
+
+ notification.line1 = deviceName
+ notification.line2 = userName
+ notification.thumbnail = userAvatarUri
notification.show = true
end function