Merge "Make settings do nothing if ranking for a card is invalid"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b54224ef1d
@@ -51,6 +51,9 @@ public class EligibleCardChecker implements Callable<ContextualCard> {
|
||||
|
||||
@VisibleForTesting
|
||||
boolean isCardEligibleToDisplay(ContextualCard card) {
|
||||
if (card.getRankingScore() < 0) {
|
||||
return false;
|
||||
}
|
||||
if (card.isCustomCard()) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user