mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-09 08:50:34 +00:00
Merge pull request #4784 from bd0n4lds/Dont-Use-Float-Type-For-Loop-Indices
Change loop index from float to int
This commit is contained in:
commit
60dc9d27bc
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user