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

fix: Stop creation of multiple listeners. #1091

Merged
merged 10 commits into from Feb 17, 2019

Conversation

angmas1
Copy link
Contributor

@angmas1 angmas1 commented Feb 13, 2019

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.

Copy link
Member

@nikit19 nikit19 left a 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

@angmas1 angmas1 changed the title Fix: Stopped creation of multiple listeners. fix: Stopped creation of multiple listeners. Feb 13, 2019
@angmas1
Copy link
Contributor Author

angmas1 commented Feb 13, 2019

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShimmerEvents have have space near top which disappears when Events get loaded so added padding for consistency. Wanted to open another PR, but pushed in this by mistake. Do you want me to remove this or is it okay?
image

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this okay? @iamareebjamal

@angmas1 angmas1 changed the title fix: Stopped creation of multiple listeners. fix: Stop creation of multiple listeners. Feb 14, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants