diff options
author | Wenyi Wang <wenyiw@google.com> | 2015-09-15 17:02:17 -0700 |
---|---|---|
committer | Wenyi Wang <wenyiw@google.com> | 2015-09-18 10:25:59 -0700 |
commit | 6287536903eb28979f453303f75956e5368f08d5 (patch) | |
tree | f63bdfa8a88b50d04fc74357c7a7b5b59b9aa91d /InCallUI | |
parent | 78205527bd51fda09f0698afcc9654888b9da667 (diff) |
Modified getCallerInfo() to handle silent ringtone
Bug: 12800232
Change-Id: I002c3df378cbaf367f212bf266d3682f6119daec
Modified code here so that it is consistent with framework/base/... and this module will be used in the future.
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallerInfo.java | 2 |
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 f15cb5d49..1a52c5069 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 { |