From 90ecfe8ff02c2b9cfe2f0e2037078b0297980415 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:09:30 +0100 Subject: [PATCH] fix: hide rotation lock on android tv close #168 --- .../video_controls/widgets/track_chapter_controls.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/widgets/video_controls/widgets/track_chapter_controls.dart b/lib/widgets/video_controls/widgets/track_chapter_controls.dart index 31d439bc..f6c73568 100644 --- a/lib/widgets/video_controls/widgets/track_chapter_controls.dart +++ b/lib/widgets/video_controls/widgets/track_chapter_controls.dart @@ -302,8 +302,8 @@ class TrackChapterControls extends StatelessWidget { buttonIndex++; } - // Rotation lock button (mobile only) - if (isMobile) { + // Rotation lock button (mobile only, not on TV since screens don't rotate) + if (isMobile && !PlatformDetector.isTV()) { final currentIndex = buttonIndex; buttons.add( _buildTrackButton( @@ -351,7 +351,7 @@ class TrackChapterControls extends StatelessWidget { if (chapters.isNotEmpty) count++; if (availableVersions.length > 1 && onSwitchVersion != null) count++; if (onCycleBoxFitMode != null) count++; - if (isMobile) count++; + if (isMobile && !PlatformDetector.isTV()) count++; // Rotation lock (not on TV) if (isDesktop) count++; return count; }