From 8fff93cf3da8f299189b9751ba0e44ba0e28fe60 Mon Sep 17 00:00:00 2001 From: xynngh Date: Fri, 2 Oct 2020 12:45:47 +0400 Subject: [PATCH] Default to neutral community rating if ratings are present --- .../yetanothercallblocker/data/NumberInfoService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/dummydomain/yetanothercallblocker/data/NumberInfoService.java b/app/src/main/java/dummydomain/yetanothercallblocker/data/NumberInfoService.java index 6b3e881..6881400 100644 --- a/app/src/main/java/dummydomain/yetanothercallblocker/data/NumberInfoService.java +++ b/app/src/main/java/dummydomain/yetanothercallblocker/data/NumberInfoService.java @@ -107,8 +107,7 @@ public class NumberInfoService { } else if (communityItem.getPositiveRatingsCount() > communityItem.getNeutralRatingsCount() + communityItem.getNegativeRatingsCount()) { numberInfo.rating = NumberInfo.Rating.POSITIVE; - } else if (communityItem.getNeutralRatingsCount() > communityItem.getPositiveRatingsCount() - + communityItem.getNegativeRatingsCount()) { + } else { numberInfo.rating = NumberInfo.Rating.NEUTRAL; } }