Skip to content

Harden Android clients, playback, and TV parity - #10

Closed
RXWatcher wants to merge 15 commits into
Silo-Server:mainfrom
RXWatcher:android-client-production-hardening-combined
Closed

RXWatcher wants to merge 15 commits into
Silo-Server:mainfrom
RXWatcher:android-client-production-hardening-combined

Conversation

@RXWatcher

Copy link
Copy Markdown
Contributor

Summary

This PR supersedes #9 and combines the Android 7/API 24 support work with the subsequent production-hardening pass across Android mobile and Android TV.

The branch is intentionally broad because the later fixes are interdependent: playback backend selection, version selection, subtitle handling, TV HUD behavior, auth/profile UX, reader/download safety, and menu-surface policy all touch shared client contracts. Keeping this as one replacement PR avoids merging the Android 7 floor without the playback/UI fixes that make the current clients usable.

Major Changes

Android 7 / API 24-25 support

  • Keeps both Android clients installable on Android 7+ while preserving the newer playback stack where the OS/device can support it.
  • Adds a shared MPV device floor so API 24/25 stay on Media3 instead of loading MPV-backed code paths that are not safe there.
  • Pins app/build policy with manifest and source tests so future changes do not silently raise the supported Android floor.
  • Documents the Android 7 support plan and the MPV floor decision in docs/plans and docs/specs.

Playback backend and version selection hardening

  • Adds shared playback start/coordinator data so mobile and TV use the same policy surface instead of drifting.
  • Improves version selection behavior so capable TV devices prefer/direct-play the appropriate 4K version instead of defaulting to 1080p or forcing avoidable transcodes.
  • Adds playback recovery/planning guardrails for fallback and retry paths.
  • Adds Dolby Vision/container capability coverage and backend selector tests.
  • Carries selected file/version/track context through start requests so track indexes line up with the displayed version.
  • Fixes MPV track override handling so selected Media3 override indexes resolve to the actual selected track format, not always track zero.
  • Adds MPV video-scale control and wires HUD aspect ratio modes through both MPV and Media3 paths.
  • Adds Media3 surface scaling for Zoom mode so the Android TV aspect-ratio control can actually crop baked-in letterbox content on devices using the Media3 backend.

Android TV player and HUD

  • Reworks the TV player HUD toward the tvOS/Infuse-style interaction model while keeping Android TV readability floors.
  • Adds direct HUD controls for video/audio/subtitle/settings/stats instead of burying common actions in unrelated menus.
  • Adds a quick subtitle selection path separate from subtitle appearance customization.
  • Adds subtitle delay/audio sync, subtitle appearance/background choices including no-background behavior, and clearer color-selection affordances.
  • Keeps buffered-range visualization, intro/skip region, and chapter markers visible on the timeline.
  • Adds/updates HUD tests for controls, track entries, picker behavior, subtitle appearance, and engine request helpers.
  • Converts HUD chapters to a bounded lazy list with stable keys/content types so longer chapter lists do not overflow the pane.

Android TV UI parity and polish

  • Aligns TV chrome, cascade behavior, detail pages, profile picker/profile creation, auth screens, dialogs, settings sheets, media info, and calendar surfaces closer to the tvOS master while preserving Android TV readability.
  • Adds a Silo-owned ANSI-style TV keyboard used by server URL, login credentials, and search/request entry points.
  • Keeps protocol shortcuts for server URL entry while using a more consistent keyboard layout for general text entry.
  • Improves focus handoffs for auth, search, requests, selector rows, dialog rows, server list, and cascade navigation.
  • Updates profile creation/edit flows and avatar/profile quality handling.
  • Updates TV launcher icon assets for square launcher presentation.
  • Adjusts card/poster/backdrop rows, detail episode rails, cast/crew/person detail routes, overlay text, and browse/detail controls to avoid clipping/cutoff seen on real TV devices.

Android mobile surfaces

  • Keeps Android mobile feature-rich while moving shared playback start behavior into the common coordinator path.
  • Updates mobile detail actions and person/profile surfaces to share the same policy direction as TV where appropriate.
  • Keeps downloads visible on Android mobile and keeps mobile-only ebook surfaces out of Android TV.
  • Adds source tests around mobile surface visibility and detail actions.

Reader/download hardening

  • Keeps downloaded/opened files in their original formats instead of legacy .bin behavior.
  • Updates download open-target/storage tests so external readers/players can discover original media formats.
  • Adds reader cache validation and EPUB resource/sanitizer hardening.
  • Adds an EPUB HTML sanitizer and associated tests for safer reflow rendering.
  • Preserves mobile ebook reader work while explicitly keeping ebooks out of Android TV surfaces.

Requests/admin/watch-together menu policy

  • Keeps request/admin/watch-together code in the tree where already implemented, but removes/hides these from normal user-accessible menus for now.
  • Adds client-surface visibility tests so the policy is explicit: code can remain for later, but these surfaces should not show up as user menu entries yet.

Tests/docs added or updated

  • Adds/updates source/unit tests for Android 7 policy, MPV backend floor, playback backend selection, playback recovery, buffer policy, track selection, MPV scale/sync, TV HUD controls, TV auth keyboard/focus, TV profile quality, TV launcher icons, TV skyline/dialog scaling, mobile profile/detail/reader behavior, and shared client-surface policy.
  • Updates README/docs to describe the Android client state and current hidden-surface policy.

Verification

Fresh verification run on this branch:

./gradlew :androidTvApp:testDebugUnitTest
./gradlew testDebugUnitTest :androidApp:assembleDebug :androidTvApp:assembleDebug
./gradlew :androidApp:lintDebug :androidTvApp:lintDebug

All three commands completed successfully.

Notes For Reviewers

  • This replaces Harden Android clients and support Android 7 #9; please review this PR instead of the older Android 7-only PR.
  • The diff is large because it combines the original Android 7 branch with the later TV/mobile production hardening work that happened after Harden Android clients and support Android 7 #9 was opened.
  • Android TV still intentionally excludes ebooks.
  • Requests/admin/watch-together remain non-user-accessible from normal menus in this branch, even though related code may exist for future rollout.
  • The TV UI tests intentionally encode Android TV readability floors where pure half-scale tvOS tokens were too small on actual devices.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 161 files, which is 11 over the limit of 150.

To get a review, narrow the scope:
• coderabbit review --type committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 688b900f-0dbe-4a9b-a8a8-613906c5e146

📥 Commits

Reviewing files that changed from the base of the PR and between 2622780 and 6bbf126.

⛔ Files ignored due to path filters (11)
  • android-shared/src/androidMain/res/raw/startup_splash.mp4 is excluded by !**/*.mp4
  • androidTvApp/src/androidMain/res/mipmap-hdpi/ic_launcher.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-hdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-mdpi/ic_launcher.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-mdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-xhdpi/ic_launcher.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_foreground.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher.png is excluded by !**/*.png
  • androidTvApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_foreground.png is excluded by !**/*.png
📒 Files selected for processing (161)
  • README.md
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/downloads/DownloadOpenTarget.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/downloads/DownloadStorage.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/ContinuumPlaybackService.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/PlaybackBufferPolicy.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/PlaybackCapabilityDetector.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/PlaybackRecoveryPlanner.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/PlaybackSessionManager.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/TrackSelectionPresets.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/backend/MpvDeviceFloor.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/backend/VideoPlaybackBackendSelector.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/mpv/MpvPlayer.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/mpv/MpvVideoScaleMode.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/video/PlaybackContainerPolicy.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/video/VideoPlaybackSessionCoordinator.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/video/VideoPlaybackStartRequest.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/video/VideoPlaybackStartResult.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/player/video/VideoPlayerUiState.kt
  • android-shared/src/androidMain/kotlin/com/continuum/app/common/ui/components/StartupSplashVideo.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/downloads/DownloadOpenTargetTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/downloads/DownloadStorageTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/ContinuumPlaybackServiceSubtitleSyncSourceTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/PlaybackBufferPolicyTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/PlaybackCapabilityDetectorDolbyVisionTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/PlaybackRecoveryPlannerTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/PlaybackSessionManagerLoggingTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/TrackSelectionPresetsSourceTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/backend/MpvDeviceFloorTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/backend/VideoPlaybackBackendSelectorTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/mpv/MpvPlayerSourceTest.kt
  • android-shared/src/androidUnitTest/kotlin/com/continuum/app/common/player/video/PlaybackContainerPolicyTest.kt
  • androidApp/src/androidMain/AndroidManifest.xml
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/MainScreen.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/detail/ItemDetailScreen.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/detail/ItemDetailViewModel.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/detail/MovieDetailContent.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/detail/SeriesDetailContent.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/people/PersonDetailViewModel.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/player/MobileVideoPlaybackStarter.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/player/PlayerViewModel.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/profiles/CreateProfileScreen.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/profiles/CreateProfileViewModel.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/profiles/EditProfileScreen.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/profiles/EditProfileViewModel.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/reader/ReaderFileCache.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/reader/reflow/EpubHtmlSanitizer.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/reader/reflow/EpubReflowSource.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/reader/reflow/ReflowWebView.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/reader/reflow/ReflowableReader.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/settings/AccountSection.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/settings/PlaybackSettings.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/settings/SettingsScreen.kt
  • androidApp/src/androidMain/kotlin/com/continuum/app/android/ui/screens/settings/SettingsViewModel.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/AndroidManifestPolicyTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/navigation/ClientSurfaceVisibilitySourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/navigation/MobileDownloadVisibilityTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/detail/MobileDetailActionsSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/player/PlayerViewModelSharedCoordinatorTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/profiles/ProfileQualitySourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/reader/ReaderEngineHostSourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/reader/ReaderFileCacheTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/reader/ReflowWebViewEpubResourceTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/reader/reflow/EpubHtmlSanitizerTest.kt
  • androidApp/src/androidUnitTest/kotlin/com/continuum/app/android/ui/screens/settings/PlaybackQualitySettingsSourceTest.kt
  • androidTvApp/src/androidMain/AndroidManifest.xml
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/MainTvActivity.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/data/preferences/TvSettingsEnums.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/di/AndroidTvModule.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvAnchoredSelectorMenu.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvAnsiKeyboard.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvAuroraChrome.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvCascadeSelector.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvEpisodeCard.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvFocusMarquee.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvFullScreenPicker.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvOptionDialog.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvPinEntryDialog.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvRootHeroBackdrop.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/components/TvTextInputDialog.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/navigation/TvAppNavigation.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/navigation/TvRoute.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/admin/TvAdminUserEditScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvCredentialKeyboard.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvCredentialKeyboardState.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvLoginScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvServerSetupScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvServerUrlKeyboard.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvServerUrlKeyboardState.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvSetupScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/auth/TvSignupScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/calendar/TvCalendarScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/collections/TvCreateCollectionDialog.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvCastCrewSection.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailEpisodeRail.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailFactsTable.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailHero.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailMetadata.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailSectionHeader.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailVersionSelection.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvExpandableSynopsis.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvItemDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvItemDetailViewModel.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/detail/TvMediaInfoDialog.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/people/TvPersonDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/player/TvHoldSeekIndicator.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/player/TvPlayerHud.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/player/TvPlayerTransportCluster.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/player/TvPlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/player/TvSubtitleAppearanceOptions.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/player/TvVideoPlaybackStarter.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/profiles/TvCreateProfileViewModel.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/profiles/TvEditProfileViewModel.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/profiles/TvProfileForm.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/requests/TvRequestsScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/search/TvSearchKeyboard.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/search/TvSearchScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/servers/TvServerListScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/screens/settings/TvSettingsScreen.kt
  • androidTvApp/src/androidMain/kotlin/com/continuum/app/tv/ui/theme/Spacing.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/TvAndroidManifestPolicyTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/data/preferences/TvPlaybackQualitySourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/components/TvAnsiKeyboardSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/components/TvAuroraChromeSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/components/TvTextInputDialogSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/navigation/TvClientSurfaceVisibilitySourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/auth/TvAuthFocusSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/auth/TvCredentialKeyboardStateTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/auth/TvServerSetupReadabilityTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/auth/TvServerUrlKeyboardStateTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/calendar/TvCalendarSizingSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailMetadataTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailPlaybackSelectionSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/detail/TvDetailVersionSelectionTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/player/PlayerTrackEntriesTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/player/TvPlayerControlsUsabilityTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/player/TvPlayerEngineRequestHelpersTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/player/TvPlayerViewModelSharedCoordinatorTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/player/TvSubtitleAppearanceOptionsTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/profiles/TvProfileQualitySourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/requests/TvRequestsUsabilityTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/search/TvSearchLayoutReadabilityTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/screens/servers/TvServerListFocusSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/shell/TvCascadeInteractionSourceTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/theme/TvDialogScalingTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/theme/TvLauncherIconAssetsTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/com/continuum/app/tv/ui/theme/TvSkylineTokenParityTest.kt
  • docs/superpowers/plans/2026-06-30-android-7-support.md
  • docs/superpowers/plans/2026-07-01-android-tv-player-hud-redesign.md
  • docs/superpowers/plans/2026-07-01-tv-launcher-icon.md
  • docs/superpowers/specs/2026-06-30-android-7-support-design.md
  • docs/superpowers/specs/2026-07-01-android-tv-player-hud-redesign-design.md
  • docs/superpowers/specs/2026-07-01-tv-launcher-icon-design.md
  • shared/src/commonMain/kotlin/com/continuum/app/model/feature/ClientSurfacePolicy.kt
  • shared/src/commonMain/kotlin/com/continuum/app/model/profile/ProfileQualityPreference.kt
  • shared/src/commonMain/kotlin/com/continuum/app/model/settings/SubtitleAppearance.kt
  • shared/src/commonMain/kotlin/com/continuum/app/playback/PlaybackVersionSelector.kt
  • shared/src/commonTest/kotlin/com/continuum/app/model/feature/ClientSurfacePolicyTest.kt
  • shared/src/commonTest/kotlin/com/continuum/app/model/profile/ProfileQualityPreferenceTest.kt
  • shared/src/commonTest/kotlin/com/continuum/app/model/settings/SubtitleAppearanceTest.kt
  • shared/src/commonTest/kotlin/com/continuum/app/playback/PlaybackVersionSelectorTest.kt

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 350d36ee47

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +133 to +134
if (mode == "auto" && selectedAudioLanguage != null && selectedAudioLanguage == targetLanguage) {
return SubtitleAutoSelection.Disable

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor forced subtitles before disabling auto mode

When subtitle mode is auto, the preferred subtitle language matches the selected audio language, and showForcedSubtitles is enabled, this returns Disable before the forced-track lookup below can run. That turns off forced subtitles for same-language audio tracks, so forced captions for foreign-dialogue segments are never selected despite the user's forced-subtitles setting.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6bbf126. Auto mode now checks for a matching forced subtitle before disabling same-language captions, while preserving the existing disable behavior when only normal same-language captions are available. Added PlayerTrackEntriesTest coverage.

Comment on lines +506 to +510
selectTvDetailDisplayVersion(
versions = selectorVersions,
selectedFileId = selectorSelectedFileId,
lastFileId = selectorLastFileId,
preferredQuality = null,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep TV detail Auto version in sync with quality preference

For multi-version titles with no explicit selection or last-played file, the selector row resolves its displayed Auto version with preferredQuality = null, while Play passes no file id unless a track override exists and the starter then applies the user's default quality setting. With a 1080p default and 4K+1080p versions, the detail screen can display 4K as the current Auto version but start 1080p, making the visible selector/metadata disagree with playback.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6bbf126. TV detail now observes PlayerSettingsStore.preferredQualityFlow, refreshes effective settings on detail load, and passes that preference into both the Auto selector row and hero quality badges. Added version-selection and metadata regression coverage.

@RXWatcher

Copy link
Copy Markdown
Contributor Author

Superseded by the split PRs:

Closing this combined PR so review can happen in smaller, ordered pieces.

@RXWatcher RXWatcher closed this Jul 1, 2026
@RXWatcher
RXWatcher deleted the android-client-production-hardening-combined branch July 13, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant