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:
@@ -110,8 +110,8 @@ public class RatingBar extends AbsSeekBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// A touch inside a star fill up to that fractional area (slightly more
|
// A touch inside a star fill up to that fractional area (slightly more
|
||||||
// than 1 so boundaries round up).
|
// than 0.5 so boundaries round up).
|
||||||
mTouchProgressOffset = 1.1f;
|
mTouchProgressOffset = 0.6f;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RatingBar(Context context, AttributeSet attrs) {
|
public RatingBar(Context context, AttributeSet attrs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user