diff options
author | calderwoodra <calderwoodra@google.com> | 2017-06-20 16:29:03 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-06-21 13:47:52 -0700 |
commit | d06625785de67bf27ba9ad4ff02dfd20011edb74 (patch) | |
tree | 8f1652e22db88064b58bfee4769f275b9cb0f9c1 /java/com/android/dialer/enrichedcall | |
parent | be6b69a2ec388bbcff2f129dcf0c7c1476315664 (diff) |
Added privacty snackbar for deleting calls with EC data.
When a user deletes a call from the call log, it might not be clear that they
aren't deleting the attachments they made with the call. So we present them
with a snackbar letting them know to open android messages to delete
attachments.
screenshot: http://screen/TSoWmNhjcn4
screenshot: http://screen/vUXShdYpXem
PiperOrigin-RevId: 159631807
Change-Id: Iaad903258160dc789e0c6a524adba56299523636
Diffstat (limited to 'java/com/android/dialer/enrichedcall')
-rw-r--r-- | java/com/android/dialer/enrichedcall/EnrichedCallManager.java | 4 | ||||
-rw-r--r-- | java/com/android/dialer/enrichedcall/stub/EnrichedCallManagerStub.java | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/dialer/enrichedcall/EnrichedCallManager.java b/java/com/android/dialer/enrichedcall/EnrichedCallManager.java index b97e6adaf..d341b43f9 100644 --- a/java/com/android/dialer/enrichedcall/EnrichedCallManager.java +++ b/java/com/android/dialer/enrichedcall/EnrichedCallManager.java @@ -221,6 +221,10 @@ public interface EnrichedCallManager { Map<CallDetailsEntry, List<HistoryResult>> getAllHistoricalData( @NonNull String number, @NonNull CallDetailsEntries entries); + /** Returns true if any enriched calls have been made or received. */ + @MainThread + boolean hasStoredData(); + /** * Unregisters the given {@link StateChangedListener}. * diff --git a/java/com/android/dialer/enrichedcall/stub/EnrichedCallManagerStub.java b/java/com/android/dialer/enrichedcall/stub/EnrichedCallManagerStub.java index 65d440cb8..1f2b00514 100644 --- a/java/com/android/dialer/enrichedcall/stub/EnrichedCallManagerStub.java +++ b/java/com/android/dialer/enrichedcall/stub/EnrichedCallManagerStub.java @@ -115,6 +115,12 @@ public final class EnrichedCallManagerStub implements EnrichedCallManager { return null; } + @Override + public boolean hasStoredData() { + Assert.isMainThread(); + return false; + } + @MainThread @Override public void requestAllHistoricalData( |