From 08590f32242bd68dbf20e459044b379e50856949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xos=C3=A9?= Date: Sun, 18 Oct 2026 15:28:07 +0200 Subject: [PATCH] Read ahead on mobile data too Co-Authored-By: Claude Opus 5.5 --- src/com/minamp/PlayerService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/minamp/PlayerService.java b/src/com/minamp/PlayerService.java index fcf8793..9039f6d 100644 --- a/src/com/minamp/PlayerService.java +++ b/src/com/minamp/PlayerService.java @@ -353,10 +353,11 @@ public class PlayerService extends Service implements MediaPlayer.OnPreparedList }); } - /** Fetches the next track whole in the background (Wi-Fi only), if it isn't here yet. Main thread. */ + /** Fetches the next track whole in the background (Wi-Fi or mobile data: it's the same bytes as streaming, + * only earlier; a skipped track is the only waste), if it isn't here yet. Main thread. */ private void maybePrefetch() { final App app = App.get(); - if (prefetchBusy || app.library == null || app.onMobileData()) return; + if (prefetchBusy || app.library == null) return; PlayQueue q = PlayQueue.get(); final Item next = q.peekNext(); if (next == null || next == track || next.ratingKey.equals(prefetchKey) || Downloads.get().fileFor(next) != null) return;