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

Use target fragments instead of tag lookups #395

Merged
merged 2 commits into from
Mar 29, 2019

Conversation

marverenic
Copy link
Collaborator

Completes #164621769.

This fixes an issue where the sleep timer and multi-repeat value pickers would not work because they were unable to send values back to the calling fragment. This was failing because they were trying to look up a fragment with a specific tag, and the requesting fragment did not have a tag specified. This regression was probably introduced in 4c3985b.

Instead of adding a tag to the fragments, this commit fixes the issue by replacing the tag lookup with the built-in target fragment mechanism, which removes the requirement that fragments need to have a tag for the result to get delivered to them.

Testing Steps

Verify that the multi-repeat and sleep timer settings can be enabled from the now playing page. Only setting this preference is affected, the actual behavior of these options has not changed.

This fixes an issue where the sleep timer and multi-repeat value pickers would not work because they were unable to send values back to the calling fragment. This was failing because they were trying to look up a fragment with a specific tag, and the requesting fragment did not have a tag specified.

Instead of adding a tag to the fragments, this commit fixes the issue by replacing the tag lookup with the built-in target fragment mechanism, which removes the requirement that fragments need to have a tag for the result to get delivered to them.
@marverenic marverenic merged commit 99c7869 into master Mar 29, 2019
@marverenic marverenic deleted the m/fix-fragment-targets branch March 29, 2019 00:31
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.

2 participants