Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 953fe490 authored by calderwoodra's avatar calderwoodra Committed by Eric Erfanian
Browse files

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
parent 827ec3c0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.