diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2020-03-18 22:18:58 -0700 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-03-23 17:42:09 +0000 |
commit | 84b79829651c827194363f8c607dbd9b93feb37e (patch) | |
tree | be10214038f66691e3ef229b119c129266cb7eb5 /app | |
parent | d2515de8dd6a5dfb5362eaa6c555863688818db7 (diff) |
messaging: display number if no name is present
When no name is sent in notification event use the phone
number instead.
Bug-AGL: SPEC-3267
Change-Id: I8c553c502dccf12169a4a650b2ca79a35ef8fdf8
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/Notification.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Notification.qml b/app/Notification.qml index f283b76..ac6b360 100644 --- a/app/Notification.qml +++ b/app/Notification.qml @@ -37,11 +37,19 @@ Item { } } Label { + visible: name text: '<b>' + name + '</b>' font.pixelSize: 42 wrapMode: Text.WordWrap } Label { + visible: name === undefined + text: '<b>' + number + '</b>' + font.pixelSize: 42 + wrapMode: Text.WordWrap + } + + Label { text: message anchors.margins: 5 anchors.left: parent.left |