summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/calllog/CallLogState.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-03-28 02:54:13 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-03-28 02:54:13 +0000
commitf17830ac721ab233e3bbb331ea91741614641009 (patch)
treec14d8aea364c511d69db8e8ab3b097ec1547b494 /java/com/android/dialer/calllog/CallLogState.java
parentdc5935b31560e90eb402de7319ae27f068d963d5 (diff)
parent68ea8cf4e1d5a19bf8ef44e9686305ded95852de (diff)
Merge "Support new call log fragment in old peer."
Diffstat (limited to 'java/com/android/dialer/calllog/CallLogState.java')
-rw-r--r--java/com/android/dialer/calllog/CallLogState.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/com/android/dialer/calllog/CallLogState.java b/java/com/android/dialer/calllog/CallLogState.java
index bdb30a769..6d2ec1e5e 100644
--- a/java/com/android/dialer/calllog/CallLogState.java
+++ b/java/com/android/dialer/calllog/CallLogState.java
@@ -54,6 +54,15 @@ public final class CallLogState {
}
/**
+ * Clear the call log state. This is useful for example if the annotated call log needs to be
+ * disabled because there was a problem.
+ */
+ @AnyThread
+ public void clearData() {
+ sharedPreferences.edit().remove(ANNOTATED_CALL_LOG_BUILT_PREF).apply();
+ }
+
+ /**
* Returns true if the annotated call log has been built at least once.
*
* <p>It may not yet have been built if the user was just upgraded to the new call log, or they