Merge "Add logging for MWI visible/hidden." into lmp-mr1-dev
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index 0b09792..df35c39 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -288,9 +288,6 @@
* @param enableNotificationSound {@code true} if the notification sound should be played.
*/
void updateMwi(int subId, boolean visible, boolean enableNotificationSound) {
- if (DBG) log("updateMwi(): subId " + subId + " update to " + visible);
- mMwiVisible.put(subId, visible);
-
if (!PhoneGlobals.sVoiceCapable) {
// Do not show the message waiting indicator on devices which are not voice capable.
// These events *should* be blocked at the telephony layer for such devices.
@@ -298,6 +295,9 @@
return;
}
+ Log.i("updateMwi(): subId " + subId + " update to " + visible);
+ mMwiVisible.put(subId, visible);
+
if (visible) {
Phone phone = PhoneGlobals.getPhone(subId);
if (phone == null) {