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

Commit e98ca4a8 authored by John Wang's avatar John Wang
Browse files

Notify voicemail only for voice-capable device.

Only allow voicemail waiting notification for
device supporting voice-capable service.

Bug: 3038102
Change-Id: I7ee1f973755f007cdcd87c4326bc55229a575598
parent c049f9ad
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -742,6 +742,10 @@ public abstract class PhoneBase extends Handler implements Phone {
    }

    public void notifyMessageWaitingIndicator() {
        // Do not notify voice mail waiting if device doesn't support voice
        if (!mIsVoiceCapable)
            return;

        // This function is added to send the notification to DefaultPhoneNotifier.
        mNotifier.notifyMessageWaitingChanged(this);
    }