fix: “Continue watching” does not display titles with the updated language - #518
Conversation
Refactor loadPublisherItems to streamline item selection and localization.
Removed unused import for MediaRepository.
|
Thanks for reopening this and addressing the earlier feedback. The PR now compiles, covers both Trakt and fallback items, and limits processing to 50 rows, so it is much closer. I found two remaining issues before merge:
Minor cleanup: The exact merge into current main is clean, GitHub Build Check passes, and both Play/Sideload compiles and unit-test suites pass. The idea is useful; fixing the two points above should make it reliable and safe to merge. |
Removed unnecessary whitespace and improved code formatting.
Added LruCache for caching titles in LauncherContinueWatchingRepository.
Refactor title and episode title resolution to use caching and limit concurrent network calls.
Added lightweight functions to retrieve movie and TV show titles without heavy processing.
Added a call to refresh the Launcher 'Keep watching' feature after updating the content language.
Refactor loadContinueWatchingCache to be a suspend function and enhance item localization.
Added localization for titles in continue watching items using a semaphore for concurrency control.
Refactor continue watching logic to use coroutines for fetching localized titles and episode titles concurrently.
Refactor continue watching logic to use translated items instead of fresh items. Update item titles and episode titles using coroutine for better performance.




I'm reopening the pull request because I was creating the previous one from my “main” branch and didn't realize it. I'm reopening this one from another appropriate branch.
I think I've fixed the issues you mentioned earlier, and I've tested it in Android Studio to make sure it doesn't crash during compilation.
Please forgive me for any other errors—I'm a total beginner at programming, and these are the first mini-projects I've ever done!