From 1d33c3f3a379440f8f797c296490b07107bfe9e5 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Mon, 1 Aug 2016 15:14:05 -0400 Subject: [PATCH] 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 --- core/java/android/widget/RatingBar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/widget/RatingBar.java b/core/java/android/widget/RatingBar.java index 223096116adb..3ad05b5e7c01 100644 --- a/core/java/android/widget/RatingBar.java +++ b/core/java/android/widget/RatingBar.java @@ -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) { -- 2.11.0