Skip to content

Commit d735767

Browse files
committed
chore: update SafeNetworkImage to handle null URLs and improve remoteSourceArtUrl handling in PlayerManager
1 parent 09600c5 commit d735767

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/common/view/safe_network_image.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class SafeNetworkImage extends StatelessWidget {
4848
Icon(YaruIcons.user, size: height != null ? height! * 0.7 : null),
4949
);
5050

51-
if (url == null || url!.endsWith('.ico')) return fallBack;
51+
if (url == null) return fallBack;
5252

5353
try {
5454
if (url!.endsWith('.svg')) {

lib/player/player_manager.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class PlayerManager extends BaseAudioHandler with SeekHandler {
5050
showPlayerExplorer: showPlayerExplorer,
5151
explorerIndex: explorerIndex,
5252
color: color,
53-
remoteSourceArtUrl: remoteSourceArtUrl,
53+
remoteSourceArtUrl: remoteSourceArtUrl?.endsWith('.ico') == true
54+
? null
55+
: remoteSourceArtUrl,
5456
remoteSourceTitle: remoteSourceTitle,
5557
);
5658

0 commit comments

Comments
 (0)