summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorJohn Wang <johnwang@google.com>2010-12-10 16:55:36 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-12-10 16:55:36 -0800
commita347afb90fc665cfb06542f19a9c8c16bdb04096 (patch)
tree1bf909bbd55bc0f93c37938f0aa9c651ded0c117 /telephony
parent05decf6d62be86c4b0f7e36cdef155d29a8c8ae4 (diff)
parente98ca4a8585c237a99d0fbc5c44a59b14d06562f (diff)
downloadframeworks_base-a347afb90fc665cfb06542f19a9c8c16bdb04096.zip
frameworks_base-a347afb90fc665cfb06542f19a9c8c16bdb04096.tar.gz
frameworks_base-a347afb90fc665cfb06542f19a9c8c16bdb04096.tar.bz2
Merge "Notify voicemail only for voice-capable device."
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/PhoneBase.java4
1 files changed, 4 insertions, 0 deletions
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);
}