summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/contactsfragment/ContactViewHolder.java
diff options
context:
space:
mode:
authorcalderwoodra <calderwoodra@google.com>2017-11-27 19:39:32 -0800
committerCopybara-Service <copybara-piper@google.com>2017-11-29 11:43:22 -0800
commitaf96139ce2bb384036f85654441b248b3b4ef77c (patch)
treefc3223552f96cbecba6d8ee0a1ad0ca09da63dcb /java/com/android/dialer/contactsfragment/ContactViewHolder.java
parent5e22e8009682c92b1b4bb44301da3c606b0090e8 (diff)
Contact list no longer jumps to the top when the cp2 database updates.
The contacts fragment recycler view was rebuilding the adapter and layout manager each time the Contacts.CONTENT_URI observered a content change. Now we simply update the adapter's cursor and notifyDataSetChanged. This keeps the recycler view in place through all changes (inserts, deletes and updates). This change also fixes another bug replated to contacts fragment not refreshing when the contacts permission was granted in another part of the UI. Bug: 64044576,67781478,68179085 Test: manual PiperOrigin-RevId: 177106761 Change-Id: Ib6a929efb047001d681cb008c3ede69860146836
Diffstat (limited to 'java/com/android/dialer/contactsfragment/ContactViewHolder.java')
0 files changed, 0 insertions, 0 deletions