mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
fix: Use defined media type for live radio detection, relocate DynamicMediaSourceFactory
This commit is contained in:
parent
e43a2b6fe5
commit
bd753f4489
3 changed files with 5 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue