diff options
author | calderwoodra <calderwoodra@google.com> | 2017-11-29 14:58:42 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-11-29 17:44:12 -0800 |
commit | e3b4382b468bc07b07cdc57aee8a6757dda1b3c1 (patch) | |
tree | f4ef38cd3108697ca3d60588bc187d28d12aac68 | |
parent | b1e7530af2bfa14984525e23be17ac1ac5db6b8d (diff) |
Search contacts now update when there are changes to the cp2 db.
Since we close the original cursor we queried in the cursor loader,
we need to assign a new content observer to the cursor we build so
that our search results update when there are changes to the contacts
db.
Bug: 63830179
Test: manual
PiperOrigin-RevId: 177368459
Change-Id: I025ea70334265cb2fdc651ed7ea046b039738e94
-rw-r--r-- | java/com/android/dialer/searchfragment/list/NewSearchFragment.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java index 9a96b4aab..8fe0918c3 100644 --- a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java +++ b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java @@ -413,6 +413,7 @@ public final class NewSearchFragment extends Fragment EnrichedCallComponent.get(getContext()) .getEnrichedCallManager() .registerCapabilitiesListener(this); + getLoaderManager().restartLoader(CONTACTS_LOADER_ID, null, this); } @Override |