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

Commit 71886c54 authored by Flavio Lerda's avatar Flavio Lerda Committed by Android (Google) Code Review
Browse files

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

parents d340308d 63d44052
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(),