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

Commit a71dd2ba authored by Suchand Ghosh's avatar Suchand Ghosh Committed by Steve Kondik
Browse files

Fix voicemail count issue.

Telephony checks voicemail count stored
in persist memory if SIM record returns
count zero.

Add code not to check voicemail count stored
in persist phone memory if card read success
and valid count is returned from card.

Change-Id: I69ea6e5087dd49a550bbb4b6f6721729e8cd7f15
CRs-Fixed: 655038
parent d43b5b1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -317,7 +317,8 @@ public class GSMPhone extends PhoneBase {
            // get voice mail count from SIM
            // get voice mail count from SIM
            countVoiceMessages = r.getVoiceMessageCount();
            countVoiceMessages = r.getVoiceMessageCount();
        }
        }
        if (countVoiceMessages == 0) {
        //card read error or unknown voicemail count. Check count stored in persist memory.
        if (countVoiceMessages == -1) {
            countVoiceMessages = getStoredVoiceMessageCount();
            countVoiceMessages = getStoredVoiceMessageCount();
        }
        }
        Rlog.d(LOG_TAG, "updateVoiceMail countVoiceMessages = " + countVoiceMessages);
        Rlog.d(LOG_TAG, "updateVoiceMail countVoiceMessages = " + countVoiceMessages);
+1 −1
Original line number Original line Diff line number Diff line
@@ -450,7 +450,7 @@ public class SIMRecords extends IccRecords {


    public int getVoiceMessageCount() {
    public int getVoiceMessageCount() {
        boolean voiceMailWaiting = false;
        boolean voiceMailWaiting = false;
        int countVoiceMessages = 0;
        int countVoiceMessages = -1;
        if (mEfMWIS != null) {
        if (mEfMWIS != null) {
            // Use this data if the EF[MWIS] exists and
            // Use this data if the EF[MWIS] exists and
            // has been loaded
            // has been loaded