Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Using privitives in callback haven't invoked it. #191

Open
lectricas opened this issue Aug 25, 2016 · 3 comments
Open

Using privitives in callback haven't invoked it. #191

lectricas opened this issue Aug 25, 2016 · 3 comments

Comments

@lectricas
Copy link

So I said:
bus.post(228); //int

and then tried to get it inside my Fragment and it haven't worked.

Then I changed it to String and everything became fine.

Is it ok?

@gauravsak
Copy link

gauravsak commented Sep 8, 2016

@lectricas Did you get an exception in the first case? If not, what went wrong?

@lectricas
Copy link
Author

@gauravsak no, I haven't got any exceptions. I got just nothing. Maybe it don't know how to work with primitives

@pforhan
Copy link
Contributor

pforhan commented Sep 8, 2016

This sort of thing is generally better to ask on StackOverflow.

What was your subscription method like? I'd bet if you used an Integer as a parameter it would have worked -- I don't know if Otto is clever enough to look at unboxing values.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants