-
Notifications
You must be signed in to change notification settings - Fork 101
Listener keeps on called forever #66
Comments
Is this really Ti related? 🤔
Can you please show your code where you use your presenter in
(Activity/Fragment).
Can you also please add a Log output to onAttachView how often it get
called?!
|
The Presenter is called once & the method
|
You never unregister from your database. You receive calls until the presenter gets garbage collected. Unregister in You're using a fragment. You may have run into a already existing bug #33 when you put the fragment into the backstack. From the current description I cannot give help. "But it is getting called forever." is not very helpful. In which state is the presenter and win which state is the Fragment/Activity? |
As per your advice, I'm removing the Listener from the database. The Listener only stops when the onDestroy method is called.
|
To be clear, your problem is that the you still receive callbacks in you Are you unregistering your callback in What are you doning in |
I'm unregistering the callbacks in
The problem is that when i add the same listener in my
But when I add the same Listener to
|
Seems not Please debug you code, look where those calls come from, there is nothing we can help you here. Try stackoverflow for additional help. |
I have an Listener on my presenter. But it is getting called forever.
If I use the same code in a
Activity without Ti
. Then it is working as expected.How can i Solve this ?
Activity (which doesn't involve Ti. But works Perfectly)
LOG CAT
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
D: onChildChanged > c02p01
The text was updated successfully, but these errors were encountered: