diff options
author | zachh <zachh@google.com> | 2017-12-04 17:08:04 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-07 10:58:55 -0800 |
commit | 4e815f9cb92f868e173017dcc9a1783324d27886 (patch) | |
tree | 528814968666ae1a5e11bf5b61da7b1d636e5d2c /java/com/android/dialer/strictmode/impl | |
parent | 24fc672b885d8a155568515cf1ab1085a1a9ab21 (diff) |
Removed timestamps from PhoneLookup APIs.
Also added onSuccessfulBulkUpdate method.
It is safer for each PhoneLookup to keep track of its own last processed time via shared prefs where the value saved is the actual last processed timestamp from the underlying data. This is because it is difficult or impossible to select a single time that spans lookups due to queries being run and processed at different times.
The onSuccessfulBulkUpdate method is provided as a hook for PhoneLookups to persist their shared pref once they know the result of bulkUpdate have been successfully saved.
Finally, removed usage of the lastModified timestamp from PhoneLookupHistory in PhoneLookupDataSource since I believe the cases it was originally intended to cover are now handled by populateInserts().
Bug: 34672501
Test: unit
PiperOrigin-RevId: 177891586
Change-Id: I072409fc217e4d7e36816548862e8b358aebf165
Diffstat (limited to 'java/com/android/dialer/strictmode/impl')
0 files changed, 0 insertions, 0 deletions