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
fix: Stop creation of multiple listeners. #1091
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure travis build passes
Yes, its a spotless kotlin error fixing it. |
@@ -99,6 +99,7 @@ | |||
android:id="@+id/eventsRecycler" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:paddingTop="@dimen/padding_medium" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this okay? @iamareebjamal
Fixes #1088
Changes: Moved code for creating listeners for which ever objects possible to onCreate instead of onCreateView so that they get created only once when fragment is created. Couldn't move some objects which relied on creation of rootview first.