Merge "Notify voicemail only for voice-capable device."

This commit is contained in:
John Wang
2010-12-10 16:55:36 -08:00
committed by Android (Google) Code Review

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