fix: Use defined media type for live radio detection, relocate DynamicMediaSourceFactory

This commit is contained in:
Jaime García 2025-09-05 11:19:47 +02:00
parent e43a2b6fe5
commit bd753f4489
No known key found for this signature in database
GPG key ID: BC4E5F71A71BDA5B
3 changed files with 5 additions and 17 deletions

View file

@ -2,7 +2,6 @@ package com.cappielloantonio.tempo.util;
import android.app.Notification;
import android.content.Context;
import android.net.Uri;
import androidx.core.app.NotificationCompat;
import androidx.media3.common.util.UnstableApi;
@ -102,13 +101,6 @@ public final class DownloadUtil {
return dataSourceFactory;
}
public static boolean shouldBypassCache(Uri uri) {
if (uri == null) return true;
String url = uri.toString();
String mainServer = Preferences.getServer();
return mainServer != null && !url.startsWith(mainServer);
}
public static synchronized DownloadNotificationHelper getDownloadNotificationHelper(Context context) {
if (downloadNotificationHelper == null) {
downloadNotificationHelper = new DownloadNotificationHelper(context, DOWNLOAD_NOTIFICATION_CHANNEL_ID);