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

Commit 9644c426 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Don't set voicemail handle to null" into lmp-mr1-dev

parents 4a04e84a 96e662d3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -428,8 +428,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;
                }
            }