Add logging for MWI visible/hidden.
Bug: 18248222
Change-Id: Ic211e82ce6c5983df6a203de48b73a5df67ea8be
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index f026442..5eba007 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) {