williamyyu / SimpleRatingBar

A simple RatingBar that you can easier to customize image and animations
MIT License
1.36k stars 153 forks source link

Set rating should respect step size #86

Closed pedronveloso closed 4 years ago

pedronveloso commented 4 years ago

The changed code is pretty self-explanatory. In my case I have a step of 1 in my app, and setting the value from the backend that was decimal was resulting in unexpected floating precision on the rating bar. This behavior is now consistent with how step and setRating work for Android's native RatingBar.

williamyyu commented 4 years ago

Hi @pedronveloso,

Good catch! thanks for the PR