diff options
author | Yorke Lee <yorkelee@google.com> | 2014-11-08 00:21:11 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-08 00:21:11 +0000 |
commit | 176328eb654918c4e558afafbed9f14074d8a989 (patch) | |
tree | 6903e1e50d0644ed2b7fa7f11fc6591c5d435ca8 /InCallUI | |
parent | 9d31631ee13ca58b3dacfa9896f2e9b71cd19126 (diff) | |
parent | 55bedf5fa79e40275163f7e989b1b78ae414e7d9 (diff) |
am ae701784: am a5f82d6f: am 12a10fbb: Merge "Correctly RTL align special numbers (emergency, voicemail)" into lmp-mr1-dev
* commit 'ae701784227e7bac8aec0fb413c48f6af5629826':
Correctly RTL align special numbers (emergency, voicemail)
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallerInfo.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfo.java b/InCallUI/src/com/android/incallui/CallerInfo.java index 3eac2f39e..88d1be1ab 100644 --- a/InCallUI/src/com/android/incallui/CallerInfo.java +++ b/InCallUI/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 |