Adjust touch progress offset to account for changes to AbsSeekBar

Previously AbsSeekBar always rounded up, which resulted in poor handling
of touches near the edge of a progress value. We fixed this but forgot
to adjust RatingBar for the new behavior.

Bug: 30558586
Change-Id: I634fa7a0b98568093e16279ef5a80abe08d2e2fe
This commit is contained in:
Alan Viverette
2016-08-01 15:14:05 -04:00
parent 8960c82dcd
commit 1d33c3f3a3

View File

@@ -110,8 +110,8 @@ public class RatingBar extends AbsSeekBar {
}
// A touch inside a star fill up to that fractional area (slightly more
// than 1 so boundaries round up).
mTouchProgressOffset = 1.1f;
// than 0.5 so boundaries round up).
mTouchProgressOffset = 0.6f;
}
public RatingBar(Context context, AttributeSet attrs) {