summaryrefslogtreecommitdiffstats
path: root/telephony/java/com
diff options
context:
space:
mode:
authorJohn Wang <johnwang@google.com>2010-12-10 16:07:32 -0800
committerJohn Wang <johnwang@google.com>2010-12-10 16:07:32 -0800
commite98ca4a8585c237a99d0fbc5c44a59b14d06562f (patch)
treed11a1c5164d96a3546f3349582d2d47c07ff5458 /telephony/java/com
parentc049f9ad5b4f5bc32f368646e624aef7707b7252 (diff)
downloadframeworks_base-e98ca4a8585c237a99d0fbc5c44a59b14d06562f.zip
frameworks_base-e98ca4a8585c237a99d0fbc5c44a59b14d06562f.tar.gz
frameworks_base-e98ca4a8585c237a99d0fbc5c44a59b14d06562f.tar.bz2
Notify voicemail only for voice-capable device.
Only allow voicemail waiting notification for device supporting voice-capable service. Bug: 3038102 Change-Id: I7ee1f973755f007cdcd87c4326bc55229a575598
Diffstat (limited to 'telephony/java/com')
-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);
}