You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Code for listener to loadevents is written in oncreateview. Thus, multiple listeners are getting created when we go from one fragment to another and then come back.
To Reproduce
Steps to reproduce the behavior:
Log when listeners are setup.(eg in eventdetailsfragment log in loadevents)
Click on something which takes to another fragement (eg tickets)
Press back.
You will see log appearing twice. Keep repeating you will get multiple logs.
Expected behavior
Listener should be setup only once when we come back
Logs
2019-02-13 15:30:39.278 28770-28770/com.eventyay.attendee E/message: loading - open
2019-02-13 15:30:43.229 28770-28770/com.eventyay.attendee E/message: loading - came back 1st time
2019-02-13 15:30:43.273 28770-28770/com.eventyay.attendee E/message: loading - came back 1st time
2019-02-13 15:30:43.278 28770-28770/com.eventyay.attendee E/message: loading - came back 1st time
2019-02-13 15:30:46.130 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:46.173 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:46.178 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:46.182 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:48.251 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.293 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.299 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.305 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.309 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
Would you like to work on the issue?
Yes
No
Other:
The text was updated successfully, but these errors were encountered:
Describe the bug
Code for listener to loadevents is written in oncreateview. Thus, multiple listeners are getting created when we go from one fragment to another and then come back.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Listener should be setup only once when we come back
Logs
2019-02-13 15:30:39.278 28770-28770/com.eventyay.attendee E/message: loading - open
2019-02-13 15:30:43.229 28770-28770/com.eventyay.attendee E/message: loading - came back 1st time
2019-02-13 15:30:43.273 28770-28770/com.eventyay.attendee E/message: loading - came back 1st time
2019-02-13 15:30:43.278 28770-28770/com.eventyay.attendee E/message: loading - came back 1st time
2019-02-13 15:30:46.130 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:46.173 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:46.178 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:46.182 28770-28770/com.eventyay.attendee E/message: loading - came back 2nd time
2019-02-13 15:30:48.251 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.293 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.299 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.305 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
2019-02-13 15:30:48.309 28770-28770/com.eventyay.attendee E/message: loading - came back 3rd time
Would you like to work on the issue?
The text was updated successfully, but these errors were encountered: