summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorWenyi Wang <wenyiw@google.com>2015-09-17 21:01:50 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-17 21:01:50 +0000
commitaade8ed7c3d36a55ae6b0703ca7b257097ddcc91 (patch)
tree5faf87746edb4149addf75ae2e02de187672a339 /InCallUI
parentad9a5f36ed22b45c31fce53f98ce3af00a4df020 (diff)
parent96c2b755cf0c503fc152268e3e5761f3074ac6b1 (diff)
Merge "Modified getCallerInfo() to handle silent ringtone" into ub-contactsdialer-a-dev
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallerInfo.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfo.java b/InCallUI/src/com/android/incallui/CallerInfo.java
index c7f032345..f15cb5d49 100644
--- a/InCallUI/src/com/android/incallui/CallerInfo.java
+++ b/InCallUI/src/com/android/incallui/CallerInfo.java
@@ -241,7 +241,12 @@ public class CallerInfo {
// in the database.
columnIndex = cursor.getColumnIndex(PhoneLookup.CUSTOM_RINGTONE);
if ((columnIndex != -1) && (cursor.getString(columnIndex) != null)) {
- info.contactRingtoneUri = Uri.parse(cursor.getString(columnIndex));
+ if (cursor.getString(columnIndex).equals("")) {
+ // make it consistent with frameworks/base/.../CallerInfo.java
+ info.contactRingtoneUri = Uri.EMPTY;
+ } else {
+ info.contactRingtoneUri = Uri.parse(cursor.getString(columnIndex));
+ }
} else {
info.contactRingtoneUri = null;
}