From e98ca4a8585c237a99d0fbc5c44a59b14d06562f Mon Sep 17 00:00:00 2001 From: John Wang Date: Fri, 10 Dec 2010 16:07:32 -0800 Subject: Notify voicemail only for voice-capable device. Only allow voicemail waiting notification for device supporting voice-capable service. Bug: 3038102 Change-Id: I7ee1f973755f007cdcd87c4326bc55229a575598 --- telephony/java/com/android/internal/telephony/PhoneBase.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'telephony') diff --git a/telephony/java/com/android/internal/telephony/PhoneBase.java b/telephony/java/com/android/internal/telephony/PhoneBase.java index b64b45d..5887130 100644 --- a/telephony/java/com/android/internal/telephony/PhoneBase.java +++ b/telephony/java/com/android/internal/telephony/PhoneBase.java @@ -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); } -- cgit v1.1