diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/itemdetail/ItemListActivity.java b/app/src/main/java/org/jellyfin/androidtv/ui/itemdetail/ItemListActivity.java index 055c52e24f..5918aef30e 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/itemdetail/ItemListActivity.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/itemdetail/ItemListActivity.java @@ -303,6 +303,9 @@ public boolean onMenuItemClick(MenuItem item) { mediaManager.getValue().addToVideoQueue(row.getItem()); break; case "Audio": + PlaybackLauncher playbackLauncher = KoinJavaComponent.get(PlaybackLauncher.class); + if (playbackLauncher.interceptPlayRequest(ItemListActivity.this, row.getItem())) break; + mediaManager.getValue().queueAudioItem(row.getItem()); break; } diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/itemhandling/ItemLauncher.java b/app/src/main/java/org/jellyfin/androidtv/ui/itemhandling/ItemLauncher.java index 89fec0fe4d..caf4157188 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/itemhandling/ItemLauncher.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/itemhandling/ItemLauncher.java @@ -140,6 +140,10 @@ public static void launch(final BaseRowItem rowItem, ItemRowAdapter adapter, int Timber.d("got pos %s", pos); if (rowItem.getBaseItem() == null) return; + + PlaybackLauncher playbackLauncher = KoinJavaComponent.get(PlaybackLauncher.class); + if (playbackLauncher.interceptPlayRequest(activity, rowItem.getBaseItem())) return; + MediaManager mediaManager = KoinJavaComponent.get(MediaManager.class); // if the song currently playing is selected (and is the exact item - this only happens in the nowPlayingRow), open AudioNowPlayingActivity