From 3c529f5967a33338af7a4a560fa168f56c1383ed Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 29 Oct 2015 17:21:31 -0700 Subject: Cleanup variable naming for easier reading. Bug: 25343277 Change-Id: I166a142f1537835b13afb2d15c0893aacda4eedd --- src/com/android/dialer/filterednumber/FilteredNumbersUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android') diff --git a/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java b/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java index 8a0d79233..00a1cf01a 100644 --- a/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java +++ b/src/com/android/dialer/filterednumber/FilteredNumbersUtil.java @@ -235,7 +235,7 @@ public class FilteredNumbersUtil { * Use {@code FilteredNumberAsyncQueryHandler} to asynchronously check if a number is blocked. */ public static boolean shouldBlockVoicemail( - Context context, String number, String countryIso, long dateMs) { + Context context, String number, String countryIso, long voicemailDateMs) { final String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); if (TextUtils.isEmpty(normalizedNumber)) { return false; @@ -256,7 +256,8 @@ public class FilteredNumbersUtil { cursor.moveToFirst(); // Block if number is found and it was added before this voicemail was received. - shouldBlock = cursor.getCount() > 0 && dateMs > cursor.getLong(0); + final long numberBlockedTimeMs = cursor.getLong(0); + shouldBlock = cursor.getCount() > 0 && voicemailDateMs > numberBlockedTimeMs; } finally { cursor.close(); } -- cgit v1.2.3