diff options
author | calderwoodra <calderwoodra@google.com> | 2017-07-12 14:02:56 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-07-13 14:01:35 -0700 |
commit | 953fe4909b48859c17adfc5e6fc17571cec47b66 (patch) | |
tree | 20d18e72be14327bf8c95577988e5401bc09a042 /java/com/android/dialer/contactsfragment/FastScroller.java | |
parent | 827ec3c07911b7a605ba0875918189ff346dc76e (diff) |
Contacts headers now update properly when you fast scroll backwards slowly.
video: https://drive.google.com/open?id=0B2Hce9qilHmvdl8xY1hmcDZ0R3M
Test: manual
PiperOrigin-RevId: 161713747
Change-Id: I8185ca897a82479ef7c552a1ce6891e31c4c5aad
Diffstat (limited to 'java/com/android/dialer/contactsfragment/FastScroller.java')
-rw-r--r-- | java/com/android/dialer/contactsfragment/FastScroller.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/dialer/contactsfragment/FastScroller.java b/java/com/android/dialer/contactsfragment/FastScroller.java index 0223c5f1f..2a86a3bb6 100644 --- a/java/com/android/dialer/contactsfragment/FastScroller.java +++ b/java/com/android/dialer/contactsfragment/FastScroller.java @@ -91,6 +91,7 @@ public class FastScroller extends RelativeLayout { int targetPos = getValueInRange(0, itemCount - 1, (int) scrolledPosition); layoutManager.scrollToPositionWithOffset(targetPos, 0); container.setText(adapter.getHeaderString(targetPos)); + adapter.refreshHeaders(); } // Returns a float in range [0, 1] which represents the position of the scroller. |