summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-11-07 22:18:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-07 22:18:14 +0000
commit12a10fbb13bb4f9a9cd429101d96d0b6fbb9e429 (patch)
tree1fa8bdddeebd4f97db586079e5fecf448338566a /src
parent7ec068d9c36630a2efb152b09ff49009741e685c (diff)
parentc8c4751c8b78c53e8e18c7abaa697cdacb84ba83 (diff)
downloadpackages_apps_InCallUI-12a10fbb13bb4f9a9cd429101d96d0b6fbb9e429.tar.gz
packages_apps_InCallUI-12a10fbb13bb4f9a9cd429101d96d0b6fbb9e429.tar.bz2
packages_apps_InCallUI-12a10fbb13bb4f9a9cd429101d96d0b6fbb9e429.zip
Merge "Correctly RTL align special numbers (emergency, voicemail)" into lmp-mr1-dev
Diffstat (limited to 'src')
-rw-r--r--src/com/android/incallui/CallerInfo.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/com/android/incallui/CallerInfo.java b/src/com/android/incallui/CallerInfo.java
index 3eac2f39..88d1be1a 100644
--- a/src/com/android/incallui/CallerInfo.java
+++ b/src/com/android/incallui/CallerInfo.java
@@ -324,15 +324,10 @@ public class CallerInfo {
* @param context To lookup the localized 'Emergency Number' string.
* @return this instance.
*/
- // TODO: Note we're setting the phone number here (refer to
- // javadoc comments at the top of CallerInfo class) to a localized
- // string 'Emergency Number'. This is pretty bad because we are
- // making UI work here instead of just packaging the data. We
- // should set the phone number to the dialed number and name to
- // 'Emergency Number' and let the UI make the decision about what
- // should be displayed.
/* package */ CallerInfo markAsEmergency(Context context) {
- phoneNumber = context.getString(R.string.emergency_call_dialog_number_for_display);
+ name = context.getString(R.string.emergency_call_dialog_number_for_display);
+ phoneNumber = null;
+
photoResource = R.drawable.img_phone;
mIsEmergency = true;
return this;
@@ -346,8 +341,6 @@ public class CallerInfo {
* set to null.
* @return this instance.
*/
- // TODO: As in the emergency number handling, we end up writing a
- // string in the phone number field.
/* package */ CallerInfo markAsVoiceMail(Context context) {
mIsVoiceMail = true;
@@ -355,7 +348,8 @@ public class CallerInfo {
// For voicemail calls, we display the voice mail tag
// instead of the real phone number in the "number"
// field.
- phoneNumber = TelephonyManagerUtils.getVoiceMailAlphaTag(context);
+ name = TelephonyManagerUtils.getVoiceMailAlphaTag(context);
+ phoneNumber = null;
} catch (SecurityException se) {
// Should never happen: if this process does not have
// permission to retrieve VM tag, it should not have