From 3d7583e0102c4e5306186a0e5c20be83b6538e36 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Mon, 2 Dec 2024 15:26:05 +0800 Subject: [PATCH] fix: reset subtitle, viewpoints Signed-off-by: bggRGjQaUbCoE --- lib/pages/video/detail/controller.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index 0c18ae30..b5c83a23 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -1582,6 +1582,9 @@ class VideoDetailController extends GetxController int vttSubtitlesIndex = 0; void _getSubtitle() { + _vttSubtitles.clear(); + vttSubtitlesIndex = 0; + viewPointList.clear(); _querySubtitles().then((value) { if (_vttSubtitles.isNotEmpty) { String preference = setting.get(