fix: hide rotation lock on android tv

close #168
This commit is contained in:
edde746
2025-12-18 12:09:30 +01:00
parent ab915d0258
commit 90ecfe8ff0
@@ -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;
}