diff options
author | maxwelb <maxwelb@google.com> | 2018-06-12 11:40:38 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-12 13:28:28 -0700 |
commit | 7299b00d169100e5ac21a48e9bb11b9d944c7916 (patch) | |
tree | 8924b399a421aeba3fad67d96aa89546c10e2bea /java | |
parent | 30ab0e91d4bcc752b982c4620f823ff084e3210a (diff) |
Delete checkSpamStatusForInCallUi
Test: Tap
PiperOrigin-RevId: 200252072
Change-Id: I25aea0e324b070d0f8553cb0041c6b3e9668552e
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/spam/Spam.java | 13 | ||||
-rw-r--r-- | java/com/android/dialer/spam/stub/SpamStub.java | 6 | ||||
-rw-r--r-- | java/com/android/incallui/call/CallList.java | 4 |
3 files changed, 1 insertions, 22 deletions
diff --git a/java/com/android/dialer/spam/Spam.java b/java/com/android/dialer/spam/Spam.java index b797ce3c4..028bda40a 100644 --- a/java/com/android/dialer/spam/Spam.java +++ b/java/com/android/dialer/spam/Spam.java @@ -61,19 +61,6 @@ public interface Spam { ListenableFuture<SpamStatus> checkSpamStatus(String number, @Nullable String defaultCountryIso); /** - * Checks if the given number is suspected of being spam, checking additional information as - * needed for the in-call ui. - * - * <p>See {@link #checkSpamStatus(String, String)}. - * - * @param number the phone number. - * @param defaultCountryIso the default country to use if it's not part of the number. - * @return the {@link SpamStatus} for the given number. - */ - ListenableFuture<SpamStatus> checkSpamStatusForInCallUi( - String number, @Nullable String defaultCountryIso); - - /** * Called as an indication that the Spam implementation should check whether downloading a spam * list needs to occur or not. * diff --git a/java/com/android/dialer/spam/stub/SpamStub.java b/java/com/android/dialer/spam/stub/SpamStub.java index 7d48ca6ef..5eeed4571 100644 --- a/java/com/android/dialer/spam/stub/SpamStub.java +++ b/java/com/android/dialer/spam/stub/SpamStub.java @@ -68,12 +68,6 @@ public class SpamStub implements Spam { } @Override - public ListenableFuture<SpamStatus> checkSpamStatusForInCallUi( - String number, @Nullable String defaultCountryIso) { - return checkSpamStatus(number, defaultCountryIso); - } - - @Override public ListenableFuture<Void> updateSpamListDownload(boolean isEnabledByUser) { // no-op return Futures.immediateFuture(null); diff --git a/java/com/android/incallui/call/CallList.java b/java/com/android/incallui/call/CallList.java index 31afe71db..634a302a2 100644 --- a/java/com/android/incallui/call/CallList.java +++ b/java/com/android/incallui/call/CallList.java @@ -150,9 +150,7 @@ public class CallList implements DialerCallDelegate { if (SpamComponent.get(context).spamSettings().isSpamEnabled()) { String number = TelecomCallUtil.getNumber(telecomCall); ListenableFuture<SpamStatus> futureSpamStatus = - SpamComponent.get(context) - .spam() - .checkSpamStatusForInCallUi(number, call.getCountryIso()); + SpamComponent.get(context).spam().checkSpamStatus(number, call.getCountryIso()); Futures.addCallback( futureSpamStatus, |