-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
@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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
See AGDROID-502