diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-21 01:30:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-21 01:30:31 +0000 |
commit | 0f2cfb47feff5fa979931318b23594a14eb4af02 (patch) | |
tree | 64e3aa663d2a36568df7a3d35d5322d24398e706 /java/com/android/dialer/phonelookup/spam/SpamPhoneLookup.java | |
parent | 6f067c91169ab9d4c24e43c039ef902700a7087f (diff) | |
parent | 2482c0fc58034e01efb7ce7e67408e248f028c95 (diff) |
Merge "Added "clearData" to CallLogDataSource and PhoneLookup interfaces."
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; + }); + } } |