Skip to content

fix: RTL layout navigation (#327) & content language cache invalidation - #514

Open
Himanth-reddy wants to merge 1 commit into
ProdigyV21:mainfrom
Himanth-reddy:fix/issue-327-rtl-scrolling-and-content-language-cache
Open

fix: RTL layout navigation (#327) & content language cache invalidation#514
Himanth-reddy wants to merge 1 commit into
ProdigyV21:mainfrom
Himanth-reddy:fix/issue-327-rtl-scrolling-and-content-language-cache

Conversation

@Himanth-reddy

Copy link
Copy Markdown
Collaborator

Summary of Changes

Fixes Issue #327 (RTL Scrolling Issue) and addresses content language caching reactivity.

Fixes Implemented:

  1. RTL Navigation & Layout Direction (Fixes RTL Scrolling Issue #327):

    • Corrected animateHomeScrollDelta calculation in HomeScreen.kt to adjust scroll delta direction when LocalLayoutDirection is Rtl.
    • Removed hardcoded LayoutDirection.Ltr wrapper on TV hero overlay in HomeScreen.kt to allow native RTL alignment.
    • Replaced hardcoded Hebrew strings for Top 10 category titles in HomeScreen.kt with localized string resources.
  2. Content Language & Cache Invalidation:

    • Fixed TMDB API language parameter across MediaRepository, SettingsViewModel, HomeViewModel, and MainActivity to explicitly send "en-US" instead of null when English is selected.
    • Added contentLanguage tracking in HomeProfilePreferences.kt and HomeViewModel.kt so language changes trigger instant in-memory and disk cache clearing (clearMediaCache()) and re-fetch catalog rows.

🔍 Observed Issues & Open Edge Cases (Help Needed)

While resolving Issue #327 and testing language switching, the following 6 localization & caching edge cases were observed:

  1. Poster Title Updates: When language is changed in Settings, titles on already loaded posters on the Home screen do not update dynamically without a full app restart.
  2. Addon / Sports Catalogs: Poster titles below the Sports section (third-party Stremio Addon catalogs) do not update when Content Language is changed.
  3. Details Screen Missing Titles: If a title translation does not exist in the requested language, the Details screen occasionally renders an empty title string.
  4. Original Language Fallback vs English: Untranslated poster titles fall back to originalTitle (e.g. Japanese, French, Hindi) instead of defaulting to English (en-US).
  5. Hebrew Top 10 Movies: Top 10 Movies category fails to load when Content Language is set to Hebrew (he/iw).
  6. Catalog Architecture Difference: Catalogs positioned below the Sports section behave differently from TMDB built-in categories above the Sports section.

Request:

The core RTL scrolling bug (#327) is resolved. Contributors or team members are welcome to assist with or investigate the 6 localization & addon catalog observations listed above.

@Himanth-reddy
Himanth-reddy force-pushed the fix/issue-327-rtl-scrolling-and-content-language-cache branch from 1abc4eb to 2c13be0 Compare August 5, 2026 11:40
@Himanth-reddy
Himanth-reddy force-pushed the fix/issue-327-rtl-scrolling-and-content-language-cache branch from 2c13be0 to d4ccd1b Compare August 5, 2026 11:55
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.

RTL Scrolling Issue

1 participant