mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-05 20:27:55 +02:00
fix: route tidal/qobuz items from Recent Access to built-in screens instead of extension screens
This commit is contained in:
@@ -2122,7 +2122,9 @@ class _HomeTabState extends ConsumerState<HomeTab>
|
||||
if (item.providerId != null &&
|
||||
item.providerId!.isNotEmpty &&
|
||||
item.providerId != 'deezer' &&
|
||||
item.providerId != 'spotify') {
|
||||
item.providerId != 'spotify' &&
|
||||
item.providerId != 'tidal' &&
|
||||
item.providerId != 'qobuz') {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
@@ -2162,7 +2164,9 @@ class _HomeTabState extends ConsumerState<HomeTab>
|
||||
} else if (item.providerId != null &&
|
||||
item.providerId!.isNotEmpty &&
|
||||
item.providerId != 'deezer' &&
|
||||
item.providerId != 'spotify') {
|
||||
item.providerId != 'spotify' &&
|
||||
item.providerId != 'tidal' &&
|
||||
item.providerId != 'qobuz') {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
@@ -2210,7 +2214,9 @@ class _HomeTabState extends ConsumerState<HomeTab>
|
||||
if (item.providerId != null &&
|
||||
item.providerId!.isNotEmpty &&
|
||||
item.providerId != 'deezer' &&
|
||||
item.providerId != 'spotify') {
|
||||
item.providerId != 'spotify' &&
|
||||
item.providerId != 'tidal' &&
|
||||
item.providerId != 'qobuz') {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
|
||||
@@ -225,11 +225,19 @@ void _pushAlbumScreen(
|
||||
String? coverUrl,
|
||||
String? extensionId,
|
||||
}) {
|
||||
// Built-in providers (tidal, qobuz, deezer) use AlbumScreen which
|
||||
// detects the provider from the album ID prefix. Only true JS extensions
|
||||
// should use ExtensionAlbumScreen.
|
||||
const builtInProviders = {'tidal', 'qobuz', 'deezer'};
|
||||
final isExtension =
|
||||
extensionId != null && !builtInProviders.contains(extensionId);
|
||||
final resolvedExtensionId = extensionId;
|
||||
|
||||
_pushViaPreferredNavigator(
|
||||
context,
|
||||
(context) => extensionId != null
|
||||
(context) => isExtension && resolvedExtensionId != null
|
||||
? ExtensionAlbumScreen(
|
||||
extensionId: extensionId,
|
||||
extensionId: resolvedExtensionId,
|
||||
albumId: albumId,
|
||||
albumName: albumName,
|
||||
coverUrl: coverUrl,
|
||||
|
||||
Reference in New Issue
Block a user