From 6287536903eb28979f453303f75956e5368f08d5 Mon Sep 17 00:00:00 2001 From: Wenyi Wang Date: Tue, 15 Sep 2015 17:02:17 -0700 Subject: 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. --- InCallUI/src/com/android/incallui/CallerInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'InCallUI') 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 { -- cgit v1.2.3