summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorWenyi Wang <wenyiw@google.com>2015-09-18 17:51:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-18 17:51:33 +0000
commitdd3dc41b589977bca9621484aed15a7f1508e7f6 (patch)
tree8bbb6794139d983bae67505e5778e54780e555a9 /InCallUI
parent3cf50edd29f372657192ebdaf9ca197c74fe94ad (diff)
parent6287536903eb28979f453303f75956e5368f08d5 (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.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfo.java b/InCallUI/src/com/android/incallui/CallerInfo.java
index 5de03d871..06703b93d 100644
--- a/InCallUI/src/com/android/incallui/CallerInfo.java
+++ b/InCallUI/src/com/android/incallui/CallerInfo.java
@@ -241,7 +241,7 @@ public class CallerInfo {
// in the database.
columnIndex = cursor.getColumnIndex(PhoneLookup.CUSTOM_RINGTONE);
if ((columnIndex != -1) && (cursor.getString(columnIndex) != null)) {
- if (cursor.getString(columnIndex).equals("")) {
+ if (TextUtils.isEmpty(cursor.getString(columnIndex))) {
// make it consistent with frameworks/base/.../CallerInfo.java
info.contactRingtoneUri = Uri.EMPTY;
} else {