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

Commit 96e662d3 authored by Yorke Lee's avatar Yorke Lee
Browse files

Don't set voicemail handle to null

Voicemail handles have empty numbers, keep them as-is so that
they can be correctly handled in Telephony.

Bug: 18275014

Change-Id: Ia6c9d004e978e8a121944b50fd84c178624b0a7f
parent e4696770
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -423,8 +423,10 @@ final class Call implements CreateConnectionResponse {
                mHandle = null;
            } else {
                mHandle = handle;
                if (mHandle != null && TextUtils.isEmpty(mHandle.getSchemeSpecificPart())) {
                    // If the number is actually empty, set it to null.
                if (mHandle != null && !PhoneAccount.SCHEME_VOICEMAIL.equals(mHandle.getScheme())
                        && TextUtils.isEmpty(mHandle.getSchemeSpecificPart())) {
                    // If the number is actually empty, set it to null, unless this is a
                    // SCHEME_VOICEMAIL uri which always has an empty number.
                    mHandle = null;
                }
            }