From ee41dda65ab65438b8049dbf8ee499304246a053 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 19 Dec 2024 12:24:44 +0100 Subject: [PATCH] Fix small bug with cache duration calculation --- lib/player_ui/bottom_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/player_ui/bottom_bar.dart b/lib/player_ui/bottom_bar.dart index f280113..8516ffc 100644 --- a/lib/player_ui/bottom_bar.dart +++ b/lib/player_ui/bottom_bar.dart @@ -74,7 +74,7 @@ class PlayerUIBottomBar extends StatelessWidget { 1000 * 99.999) : 0.0; - if (cachedPercent > 100) { + if (0 < cachedPercent || cachedPercent > 100) { cachedPercent = 0; } return Flex(