Navigation: Allow parsing a `NavType#ReferenceType` from String by JvmName · Pull Request #127 · androidx/androidx · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Navigation: Allow parsing a NavType#ReferenceType from String #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed

Navigation: Allow parsing a NavType#ReferenceType from String #127

wants to merge 7 commits into from

Conversation

JvmName
Copy link
Contributor

@JvmName JvmName commented Feb 7, 2021

If Bundle contents can be extracted as a Reference, allow parsing the Bundle contents as a Reference.

When navigating via deeplink URI, the user is required to string-ify navigation arguments in order to append them to the URI as query parameters. This PR supports retrieving a Reference type from a Bundle

Proposed Changes

  • replace NavType#ReferenceType::parseValue's method functionality with Integer.parseInt

Testing

Updated NavTypeTest to validate that reference types can be inserted and retrieved from a Bundle.
Test: /gradlew test connectedCheck

Issues Fixed

Fixes: b/179166693

@google-cla google-cla bot added the cla: yes label Feb 7, 2021
@JvmName JvmName changed the title Allow parsing a NavType#ReferenceType from String Navigation: Allow parsing a NavType#ReferenceType from String Feb 7, 2021
@dlam dlam requested a review from jbw0033 February 8, 2021 17:21
@JvmName JvmName requested a review from jbw0033 February 9, 2021 15:53
@JvmName
Copy link
Contributor Author

JvmName commented Feb 9, 2021

Error: Unable to deliver Web Hook Error: Request failed with status code 502

Looks like some part of the build chain is having a bad day -- I'll attempt to rebuild tomorrow, but these changes compile on my local machine FWIW

@ianhanniballake
Copy link
Member

Yep, we're having some internal infrastructure fun times at the moment. Code looks good here though!

@JvmName JvmName deleted the parse-reference-navtype branch February 10, 2021 02:34
BreezyHe pushed a commit to Tencent-TDS/ovCompose-multiplatform-core that referenced this pull request Apr 27, 2025
If Bundle contents can be extracted as a Reference, allow parsing the Bundle contents as a Reference.

When navigating via deeplink URI, the user is required to string-ify navigation arguments in order to append them to the URI as query parameters. This PR supports retrieving a Reference type from a Bundle

## Proposed Changes
  - replace `NavType#ReferenceType::parseValue`'s method functionality with `Integer.parseInt`

## Testing
Updated `NavTypeTest` to validate that reference types can be inserted and retrieved from a Bundle.
Test: /gradlew test connectedCheck

## Issues Fixed

Fixes: b/179166693

This is an imported pull request from androidx/androidx#127.

Resolves #127
Github-Pr-Head-Sha: 78179a9e7dfe156d647a7e30992fd82aaa40a7ad
GitOrigin-RevId: edf5410d3277740bdb4033bce59655e9c8df960a
Change-Id: I80f4d03a07b04756cd7ea1f3cf43688a115116e4
(cherry picked from commit 15eea2e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.