summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-10-29 17:21:31 -0700
committerAndrew Lee <anwlee@google.com>2015-10-29 17:21:31 -0700
commit3c529f5967a33338af7a4a560fa168f56c1383ed (patch)
tree5d9c559ca2477f267603365b4c987802f749cfdc /src
parent72579fe971e0a0c3711438e8852d9659f48101c8 (diff)
Cleanup variable naming for easier reading.
Bug: 25343277 Change-Id: I166a142f1537835b13afb2d15c0893aacda4eedd
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/filterednumber/FilteredNumbersUtil.java5
1 files changed, 3 insertions, 2 deletions
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();
}