diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-28 20:29:10 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-28 20:29:10 -0700 |
commit | f6355e24f5382356ea197135fdeff827aabfdb90 (patch) | |
tree | 7c76d11cd1df1e89b9018e93ae7444d44a40ddfe /core/java/android | |
parent | 2af7e639906981b1562f3187a60b6c848b7da17c (diff) | |
parent | dda5391d5079537e275c9f4ed2637a1484d0e4e8 (diff) | |
download | frameworks_base-f6355e24f5382356ea197135fdeff827aabfdb90.zip frameworks_base-f6355e24f5382356ea197135fdeff827aabfdb90.tar.gz frameworks_base-f6355e24f5382356ea197135fdeff827aabfdb90.tar.bz2 |
Merge change 2399 into donut
* changes:
Motorola additions for CDMA support without CdmaSuppConnTracker
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/provider/CallLog.java | 20 | ||||
-rw-r--r-- | core/java/android/text/method/DialerKeyListener.java | 2 |
2 files changed, 20 insertions, 2 deletions
diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index abd6934..7d03801 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -151,6 +151,9 @@ public class CallLog { int presentation, int callType, long start, int duration) { final ContentResolver resolver = context.getContentResolver(); + // TODO(Moto): Which is correct: original code, this only changes the + // number if the number is empty and never changes the caller info name. + if (false) { if (TextUtils.isEmpty(number)) { if (presentation == Connection.PRESENTATION_RESTRICTED) { number = CallerInfo.PRIVATE_NUMBER; @@ -160,7 +163,22 @@ public class CallLog { number = CallerInfo.UNKNOWN_NUMBER; } } - + } else { + // NEWCODE: From Motorola + + //If this is a private number then set the number to Private, otherwise check + //if the number field is empty and set the number to Unavailable + if (presentation == Connection.PRESENTATION_RESTRICTED) { + number = CallerInfo.PRIVATE_NUMBER; + ci.name = ""; + } else if (presentation == Connection.PRESENTATION_PAYPHONE) { + number = CallerInfo.PAYPHONE_NUMBER; + ci.name = ""; + } else if (TextUtils.isEmpty(number) || presentation == Connection.PRESENTATION_UNKNOWN) { + number = CallerInfo.UNKNOWN_NUMBER; + ci.name = ""; + } + } ContentValues values = new ContentValues(5); values.put(NUMBER, number); diff --git a/core/java/android/text/method/DialerKeyListener.java b/core/java/android/text/method/DialerKeyListener.java index b121e60..584e83f 100644 --- a/core/java/android/text/method/DialerKeyListener.java +++ b/core/java/android/text/method/DialerKeyListener.java @@ -106,7 +106,7 @@ public class DialerKeyListener extends NumberKeyListener */ public static final char[] CHARACTERS = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '#', '*', - '+', '-', '(', ')', ',', '/', 'N', '.', ' ' + '+', '-', '(', ')', ',', '/', 'N', '.', ' ', ';' }; private static DialerKeyListener sInstance; |