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

Commit c6194371 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Telephony: Voice mail notification related changes" into lmp-dev

automerge: 8daf2a45

* commit '8daf2a45':
  Telephony: Voice mail notification related changes
parents 26a4150c 8daf2a45
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -1867,6 +1867,23 @@ public class GSMPhone extends PhoneBase {
        }
    }

    /**
     * Sets the SIM voice message waiting indicator records.
     * @param line GSM Subscriber Profile Number, one-based. Only '1' is supported
     * @param countWaiting The number of messages waiting, if known. Use
     *                     -1 to indicate that an unknown number of
     *                      messages are waiting
     */
    @Override
    public void setVoiceMessageWaiting(int line, int countWaiting) {
        IccRecords r = mIccRecords.get();
        if (r != null) {
            r.setVoiceMessageWaiting(line, countWaiting);
        } else {
            log("SIM Records not found, MWI not updated");
        }
    }

    protected void log(String s) {
        Rlog.d(LOG_TAG, "[GSMPhone] " + s);
    }