From 844dc53220acde48776d39ee71d2cbd58591fd50 Mon Sep 17 00:00:00 2001 From: polymorphicshade Date: Sat, 5 Sep 2020 22:25:02 -0600 Subject: [PATCH] SponsorBlock: Fixed rounding issue when marking segments --- .../main/java/org/schabi/newpipe/views/SeekBarMarker.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/views/SeekBarMarker.java b/app/src/main/java/org/schabi/newpipe/views/SeekBarMarker.java index d71b895a3..b278484fe 100644 --- a/app/src/main/java/org/schabi/newpipe/views/SeekBarMarker.java +++ b/app/src/main/java/org/schabi/newpipe/views/SeekBarMarker.java @@ -6,7 +6,6 @@ public class SeekBarMarker { public double percentStart; public double percentEnd; public int color; - public Object tag; public SeekBarMarker(final double startTime, final double endTime, @@ -14,8 +13,8 @@ public class SeekBarMarker { final int color) { this.startTime = startTime; this.endTime = endTime; - this.percentStart = Math.round((startTime / maxTime) * 100.0) / 100.0; - this.percentEnd = Math.round((endTime / maxTime) * 100.0) / 100.0; + this.percentStart = ((startTime / maxTime) * 100.0) / 100.0; + this.percentEnd = ((endTime / maxTime) * 100.0) / 100.0; this.color = color; }