summaryrefslogtreecommitdiffstats
path: root/app/Notification.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2020-03-18 22:18:58 -0700
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-03-23 17:42:09 +0000
commit84b79829651c827194363f8c607dbd9b93feb37e (patch)
treebe10214038f66691e3ef229b119c129266cb7eb5 /app/Notification.qml
parentd2515de8dd6a5dfb5362eaa6c555863688818db7 (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/Notification.qml')
-rw-r--r--app/Notification.qml8
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