Skip to content

Conversation

@97balakrishnan
Copy link
Contributor

PR for #264
Pull down to refresh feature added in nearby activity.

SwipeRefreshLayout used

@codecov-io
Copy link

Codecov Report

Merging #1164 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1164      +/-   ##
=========================================
- Coverage    3.96%   3.95%   -0.01%     
=========================================
  Files         123     123              
  Lines        5604    5610       +6     
  Branches      542     542              
=========================================
  Hits          222     222              
- Misses       5367    5373       +6     
  Partials       15      15
Impacted Files Coverage Δ
...ava/fr/free/nrw/commons/nearby/NearbyActivity.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b9b80e9...9d6837b. Read the comment docs.

Copy link
Contributor

@maskaravivek maskaravivek left a comment

Choose a reason for hiding this comment

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

Please address these comments.

Good to merge once the comments are addressed and the changes are tested. :)

android:layout_height="wrap_content" />

<android.support.v4.widget.SwipeRefreshLayout

Copy link
Contributor

Choose a reason for hiding this comment

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

remove blank lines

bundle = new Bundle();
initDrawer();
initViewState();
swipeLayout=(SwipeRefreshLayout)findViewById(R.id.swipe_container);
Copy link
Contributor

Choose a reason for hiding this comment

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

use butterknife.

Refer to: https://github.com/JakeWharton/butterknife

@97balakrishnan
Copy link
Contributor Author

Sure. I will make the changes and commit ASAP.

@97balakrishnan
Copy link
Contributor Author

Please review the changes

@maskaravivek
Copy link
Contributor

@97balakrishnan Swipe to refresh works fine. The list updates even if the location has not changed.

@misaochan @neslihanturan Is that behaviour fine. If yes, we can go ahead and merge this. Have tested it on a real device.

@maskaravivek
Copy link
Contributor

I just noticed that it exactly replicates the functionality of the refresh button.

Going ahead and merging it. @97balakrishnan congrats for your first contribution. :)

@maskaravivek maskaravivek merged commit a7a2b51 into commons-app:master Feb 23, 2018
@97balakrishnan
Copy link
Contributor Author

Thanks a lot. My pleasure. I'll make the changes to prevent it from refreshing if the locations not changed ASAP. Thanks again

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.

4 participants