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

Commit 5ec720f9 authored by Huilong Yin's avatar Huilong Yin Committed by Denis Hsu
Browse files

Change excepted result on R for testVoiceMailNumber

If phone type is not gsm, getVoiceMailAlphaTag() will always
return the string of R.string.defaultVoiceMailAlphaTag. So it
does not read it from SIMrecords, it get default value “Voicemail”.

Bug: 160386097
Change-Id: I5a2e7ccb2e5652db06274d7eb1874bc72508538b
parent c539301f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1726,8 +1726,8 @@ public class GsmCdmaPhone extends Phone {
    public String getVoiceMailAlphaTag() {
        String ret = "";

        if (isPhoneTypeGsm()) {
            IccRecords r = mIccRecords.get();
        if (isPhoneTypeGsm() || mSimRecords != null) {
            IccRecords r = isPhoneTypeGsm() ? mIccRecords.get() : mSimRecords;

            ret = (r != null) ? r.getVoiceMailAlphaTag() : "";
        }