fix(recommend): 修正进度取消状态更新编译错误

This commit is contained in:
Zhou Weidong committed 2026-10-22 20:04:43 +08:00
1 parent ac4a800b78
commit d731b36c1f
3 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -138,9 +138,6 @@ class _PlayerPageState extends State<PlayerPage>
downloads: widget.downloads,
);
logic.attach(widget, isMounted: () => mounted);
if (oldWidget.scrubCancelRequest != widget.scrubCancelRequest) {
_cancelFeedScrub();
}
_thumbnailService = PlaybackThumbnailService(
sourceResolver: _resolveThumbnailSource,
);
@@ -156,6 +153,9 @@ class _PlayerPageState extends State<PlayerPage>
void didUpdateWidget(covariant PlayerPage oldWidget) {
super.didUpdateWidget(oldWidget);
logic.attach(widget, isMounted: () => mounted);
if (oldWidget.scrubCancelRequest != widget.scrubCancelRequest) {
_cancelFeedScrub();
}
final channelChanged = oldWidget.feedChannel != widget.feedChannel;
final feedChanged =
_feedSignature(oldWidget.feedDramas) !=