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

Timing issue? #56

Closed
PaulWoitaschek opened this issue Dec 11, 2015 · 4 comments
Closed

Timing issue? #56

PaulWoitaschek opened this issue Dec 11, 2015 · 4 comments

Comments

@PaulWoitaschek
Copy link

I have a normal presenter and an activity. In onTakeView the presenter passes a boolean to a method in the activity which sets the drawable of a button to an image on true or to null on false.

What happens is that since I switched to nucleus I can see the image for the fraction of a second before it vanishes (when the presenter calls it).

This causes an annoying visual flicker. How can I fix that? Or is it a bug? I don't use any other threads than the main thread.

@konmik
Copy link
Owner

konmik commented Dec 11, 2015

It looks that you're using observeOn while you're on the main thread.

@PaulWoitaschek
Copy link
Author

Hm, I explicitly threw rx out here.

Maybe you can take a look?
View
Presenter

@konmik
Copy link
Owner

konmik commented Dec 11, 2015

Hm, looks good. Have you tried setting the image inside of Activity's onResume? If it will flicker there then it is obviously not a Nucleus issue.

@PaulWoitaschek
Copy link
Author

Okay, my fault.

Caused by spinner events firing of later. Thanks for the great library!

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

No branches or pull requests

2 participants