Skip to content
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

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants