diff options
Diffstat (limited to 'java/com/android/dialer/phonelookup/spam/SpamPhoneLookup.java')
-rw-r--r-- | java/com/android/dialer/phonelookup/spam/SpamPhoneLookup.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/com/android/dialer/phonelookup/spam/SpamPhoneLookup.java b/java/com/android/dialer/phonelookup/spam/SpamPhoneLookup.java index 2a856280b..315f65819 100644 --- a/java/com/android/dialer/phonelookup/spam/SpamPhoneLookup.java +++ b/java/com/android/dialer/phonelookup/spam/SpamPhoneLookup.java @@ -159,4 +159,13 @@ public final class SpamPhoneLookup implements PhoneLookup<SpamInfo> { @Override public void unregisterContentObservers(Context appContext) {} + + @Override + public ListenableFuture<Void> clearData() { + return backgroundExecutorService.submit( + () -> { + sharedPreferences.edit().remove(PREF_LAST_TIMESTAMP_PROCESSED).apply(); + return null; + }); + } } |