Change loop index from float to int

This commit is contained in:
Bri@n 2020-11-02 21:16:07 -05:00 committed by Stypox
parent 4c77e5cdd2
commit 9eb0f48a7a
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23

View file

@ -83,8 +83,8 @@ public class ProgressDrawable extends Drawable {
// render marquee // render marquee
width += size * 2; width += size * 2;
Path marquee = new Path(); Path marquee = new Path();
for (float i = -size; i < width; i += size) { for (int i = -size; i < width; i += size) {
marquee.addPath(mMarqueeLine, i + mMarqueeProgress, 0); marquee.addPath(mMarqueeLine, ((float)i + mMarqueeProgress), 0);
} }
marquee.close(); marquee.close();