From 9eb0f48a7a54693ee4d94a9ca71abf605cea6b34 Mon Sep 17 00:00:00 2001 From: "Bri@n" Date: Mon, 2 Nov 2020 21:16:07 -0500 Subject: [PATCH] Change loop index from float to int --- .../java/us/shandian/giga/ui/common/ProgressDrawable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/us/shandian/giga/ui/common/ProgressDrawable.java b/app/src/main/java/us/shandian/giga/ui/common/ProgressDrawable.java index bec947540d2..2a8077d51fa 100644 --- a/app/src/main/java/us/shandian/giga/ui/common/ProgressDrawable.java +++ b/app/src/main/java/us/shandian/giga/ui/common/ProgressDrawable.java @@ -83,8 +83,8 @@ public void draw(@NonNull Canvas canvas) { // render marquee width += size * 2; Path marquee = new Path(); - for (float i = -size; i < width; i += size) { - marquee.addPath(mMarqueeLine, i + mMarqueeProgress, 0); + for (int i = -size; i < width; i += size) { + marquee.addPath(mMarqueeLine, ((float)i + mMarqueeProgress), 0); } marquee.close();