From 84b79829651c827194363f8c607dbd9b93feb37e Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 18 Mar 2020 22:18:58 -0700 Subject: 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 --- app/Notification.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/Notification.qml') diff --git a/app/Notification.qml b/app/Notification.qml index f283b76..ac6b360 100644 --- a/app/Notification.qml +++ b/app/Notification.qml @@ -37,10 +37,18 @@ Item { } } Label { + visible: name text: '' + name + '' font.pixelSize: 42 wrapMode: Text.WordWrap } + Label { + visible: name === undefined + text: '' + number + '' + font.pixelSize: 42 + wrapMode: Text.WordWrap + } + Label { text: message anchors.margins: 5 -- cgit 1.2.3-korg