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

Fix categories config #54

Closed
wants to merge 1 commit into from
Closed

Fix categories config #54

wants to merge 1 commit into from

Conversation

danielpassos
Copy link
Collaborator

@danielpassos
Copy link
Collaborator Author

@secondsun Could you give it a spin?

@@ -245,7 +245,7 @@ public UnifiedPushConfig setAlias(String alias) {
*
*/
public UnifiedPushConfig setCategories(List<String> categories) {
this.categories = new ArrayList<String>(categories);
this.categories = categories;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we need to stop doing a defensive copy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only because it does not work. I asked me the same when community send a bug report. I did some tests and it does not work and I have no idea why :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I just reverted this file and reran the automated tests and it works.
Is there a problem when it is running in the demo or something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@secondsun Yes, try use setCategories with Hello World Project and check the categories in UPS

@danielpassos
Copy link
Collaborator Author

It was fixed by @edewit in #51

@danielpassos danielpassos deleted the categories-config branch October 27, 2017 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants