diff options
author | zachh <zachh@google.com> | 2017-12-07 17:59:20 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-07 18:35:07 -0800 |
commit | 81a7b490ebbf2d9a4213a79b52e7b999aa076b7f (patch) | |
tree | 8cc90871e7cef664d498d359b57a95ff7a1b6a79 /java/com/android/dialer/searchfragment/list | |
parent | 36a384e04fd9b8ba1d53500afb7e0055e4e4bb99 (diff) |
Implemented PhoneLookupDataSource#onSuccesfulFill.
Required adding applyBatch functionality to PhoneLookupHistoryContentProvider so that the updates can be performed in a transaction. This code was just copied and modified from AnnotatedCallLogContentProvider.
Also removed the trigger which limited the size of the PhoneLookupHistory, since we now delete rows from PhoneLookupHistory when the last occurrence of a number is deleted from AnnotatedCallLog. Since AnnotatedCallLog is bounded to 1000 rows PhoneLookupHistory is now indirectly bounded by that as well.
Bug: 34672501
Test: unit
PiperOrigin-RevId: 178323464
Change-Id: I233163fe70641b0e4b1d4c5c0e8970ad0b4b167d
Diffstat (limited to 'java/com/android/dialer/searchfragment/list')
0 files changed, 0 insertions, 0 deletions