-
Notifications
You must be signed in to change notification settings - Fork 101
How to use sendToView ? #57
Comments
Hey,
When do you call this method? |
I'm trying to load Items into my Recyclerview when the loading is completed in my Presenter. How can i Call The onViewReady is called in the
|
Can you confirm onNext is called?
Either you are never calling |
I can confirm that the onNext is called. I have also logged all the items from mProd. It is working as expected! |
And your Activity is in foreground? Then the |
Yeah. The Activity is in foreground. I even add a log statement in |
When you say
|
Instead of calling This Log is called while the App is in foreground These Logs are called when i Press home & comeback
|
If i use
|
Can you please show your presenter code, when you call your Normally you have to use |
So, wait what?! |
When a Button is clicked on my Activity, I should change the products according to the category. So i should pass the Category ID to the Presenter in my Activity. Please take a look at my gist https://gist.github.com/AruLNadhaN/dc023c5854dab5000b73e800ae96fc70#file-browseactivity-java-L34 |
I'm I wrong or do you use two different Presenters? ;) You attach the First one to your |
I've created a short test and everything worked like expected. |
You inject one Presenter and create another one in your Activity. Don't inject the Presenter and only use the one created from the plugin. |
Solved it! The problem is that i'm injecting another instance of presenter in my activity. |
Please ask those questions on Stackoverflow where you can get quick help from a bigger audience for your beginner questions. |
sorry. I thought that the values are not retained due to the library. Because it was working fine. When i was calling the presenter from the Activity. |
I'm trying to call a method in my View through
sendToView
. But it is not working ?I have tried using
getView
. It returns NPE because i'm calling thegetProductsByCat
after thePresenter onAttach
The text was updated successfully, but these errors were encountered: