Notify voicemail only for voice-capable device.

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

Bug: 3038102
Change-Id: I7ee1f973755f007cdcd87c4326bc55229a575598
This commit is contained in:
John Wang
2010-12-10 16:07:32 -08:00
parent c049f9ad5b
commit e98ca4a858

View File

@@ -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);
}