fix(jellyfin): honor continue watching action

close #1334
This commit is contained in:
edde746
2026-06-14 07:25:40 +02:00
parent e1c0df3bd7
commit 849e62df7e
9 changed files with 142 additions and 15 deletions
+5 -1
View File
@@ -37,6 +37,7 @@ class HubDetailScreen extends StatefulWidget {
final MediaHub hub;
final Future<List<MediaItem>> Function()? loadItems;
final bool isInContinueWatching;
final bool usesContinueWatchingAction;
final VoidCallback? onRemoveFromContinueWatching;
const HubDetailScreen({
@@ -44,8 +45,9 @@ class HubDetailScreen extends StatefulWidget {
required this.hub,
this.loadItems,
this.isInContinueWatching = false,
bool? usesContinueWatchingAction,
this.onRemoveFromContinueWatching,
});
}) : usesContinueWatchingAction = usesContinueWatchingAction ?? isInContinueWatching;
@override
State<HubDetailScreen> createState() => _HubDetailScreenState();
@@ -550,6 +552,7 @@ class _HubDetailScreenState extends State<HubDetailScreen>
? _handleRemoveFromContinueWatching
: null,
isInContinueWatching: widget.isInContinueWatching,
usesContinueWatchingAction: widget.usesContinueWatchingAction,
onNavigateUp: index == 0 ? navigateToAppBar : null,
onBack: handleBackFromContent,
onFocusChange: (hasFocus) => trackGridItemFocus(index, hasFocus),
@@ -591,6 +594,7 @@ class _HubDetailScreenState extends State<HubDetailScreen>
? _handleRemoveFromContinueWatching
: null,
isInContinueWatching: widget.isInContinueWatching,
usesContinueWatchingAction: widget.usesContinueWatchingAction,
onNavigateUp: isFirstRow ? navigateToAppBar : null,
onNavigateLeft: isFirstColumn ? () {} : null,
onBack: handleBackFromContent,