Fixes bug in CDMA phones' missed call notification
- There was inconsistency between CallNotifier and NotificationMgr in
which variable to set to "Private number" when the number has its
representation form set.
- This fixed the problem in the missed call case, but we should
re-examine our logic to set the "Private number" string in all our
projects.
Bug: 11275098
Change-Id: I5bb955ebdfa16860cfcb1494ba82789fb40d79c2
diff --git a/src/com/android/phone/CallNotifier.java b/src/com/android/phone/CallNotifier.java
index c9ad397..80807a2 100644
--- a/src/com/android/phone/CallNotifier.java
+++ b/src/com/android/phone/CallNotifier.java
@@ -802,7 +802,7 @@
if (VDBG) log("CallerInfo query complete, posting missed call notification");
mApplication.notificationMgr.notifyMissedCall(ci.name, ci.phoneNumber,
- ci.phoneLabel, ci.cachedPhoto, ci.cachedPhotoIcon,
+ ci.numberPresentation, ci.phoneLabel, ci.cachedPhoto, ci.cachedPhotoIcon,
((Long) cookie).longValue());
} else if (cookie instanceof Connection) {
final Connection c = (Connection) cookie;
@@ -1715,7 +1715,7 @@
number = PhoneUtils.modifyForSpecialCnapCases(mApplication,
ci, number, ci.numberPresentation);
}
- mApplication.notificationMgr.notifyMissedCall(name, number,
+ mApplication.notificationMgr.notifyMissedCall(name, number, ci.numberPresentation,
ci.phoneLabel, ci.cachedPhoto, ci.cachedPhotoIcon, date);
}
} else {