Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63d44052 authored by Flavio Lerda's avatar Flavio Lerda
Browse files

Do not show the "configure voicemail" message if there is URI.

If there is no URI, this is just a message that is not actionable.  Do
not include it in the UI.

Bug: 5225828
Change-Id: I99e5f9e7ea58473ccbfb449d2802084f7acd6d36
parent 7a1ff059
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -221,8 +221,13 @@ public class VoicemailStatusHelperImpl implements VoicemailStatusHelper {
        Uri actionUri = null;
        if (action == Action.CALL_VOICEMAIL) {
            actionUri = UriUtils.parseUriOrNull(cursor.getString(VOICEMAIL_ACCESS_URI_INDEX));
            // Even if actionUri is null, it is still be useful to show the notification.
        } else if (action == Action.CONFIGURE_VOICEMAIL) {
            actionUri = UriUtils.parseUriOrNull(cursor.getString(SETTINGS_URI_INDEX));
            // If there is no settings URI, there is no point in showing the notification.
            if (actionUri == null) {
                return null;
            }
        }
        return new MessageStatusWithPriority(
                new StatusMessage(sourcePackage, overallState.getCallLogMessageId(),