Wholphin/app/src/main
calebvetter c1abb57cd2
Add back stack for deep link navigation (#1756)
## Description
When testing the new deep link feature from this PR
[#1688](https://github.com/damontecres/Wholphin/pull/1688)
I noticed that the back button would close the app. As in, all routes
are cleared and only the playback is in the nav stack.

I figured a more desirable behavior would be to create a nav stack,
always starting with the home screen, then also inserting the media
item's details page, if available.

To achieve this, I made the return Target.destinations a list of
destinations, and updated the other two uses in IntentService.

Open to implementation tweaks, or scrap it if this isn't how it should
work, haha.

### Testing

Tested deep links, which produced the following nav stacks:
- Movie view
  - Home → Movie details
- Movie playback (with and without position)
  - Home → Movie details → Playback
- Series view
  - Home → Series details
- Season view
  - Home → Season details
- Episode view
  - Home → Episode details
- Episode playback (with and without position)
  - Home → Episode details → Playback
- Trailer/extras playback (no details page available)
  - Home → Playback
- TV channel view
  - Home → Playback
- TV channel playback
  - Home → Playback

## AI or LLM usage
AI was used to generate the initial code, debug and test, then manual
refactoring and cleanup was done.

---------

Co-authored-by: Damontecres <damontecres@gmail.com>
2026-08-11 10:59:20 -04:00
..
assets Add experimental MPV player backend (#161) 2025-11-16 18:46:25 -05:00
java/com/github/damontecres/wholphin Add back stack for deep link navigation (#1756) 2026-08-11 10:59:20 -04:00
proto Add two new themes: Red & Brown (#1721) 2026-07-25 22:52:09 -04:00
res Fix translations again (#1776) 2026-08-02 10:31:56 -04:00
seerr Fix loading a canceled discover tv show (#1709) 2026-07-16 11:35:32 -04:00
AndroidManifest.xml Add search intent-filter for #1688 2026-07-20 10:39:42 -04:00
ic_launcher-playstore.png Add icons 2025-10-12 17:41:54 -04:00