Skip to content

removed inactive icons from the bottom panel in nearby #2549

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

Merged
merged 4 commits into from
Mar 9, 2019

Conversation

vanshikaarora
Copy link
Contributor

Removed inactive icons from bottom panel of nearby instead of greying them out

Fixes #2541 Removing inactive icons from the bottom panel in nearby

Changes made

Changed visibility of icons instead of disabling them

Screenshots showing what changed
screenshot_20190306_214754

@codecov-io
Copy link

codecov-io commented Mar 6, 2019

Codecov Report

Merging #2549 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2549   +/-   ##
======================================
  Coverage     5.9%    5.9%           
======================================
  Files         258     258           
  Lines       12300   12300           
  Branches     1104    1107    +3     
======================================
  Hits          726     726           
  Misses      11515   11515           
  Partials       59      59
Impacted Files Coverage Δ
.../fr/free/nrw/commons/nearby/NearbyMapFragment.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 7480d00...02de235. Read the comment docs.

@@ -836,10 +836,10 @@ private void passInfoToSheet(Place place) {
updateMarker(isBookmarked, this.place);
});

wikipediaButton.setEnabled(place.hasWikipediaLink());
wikipediaButton.setVisibility(place.hasWikipediaLink()==true?View.VISIBLE:View.GONE);
Copy link
Member

Choose a reason for hiding this comment

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

If place.hasWikipediaLink()?View.VISIBLE:View.GONE works, it would be better :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK I'll do that

@vanshikaarora
Copy link
Contributor Author

@nicolas-raoul I have made the changes. Kindly review :)

@maskaravivek maskaravivek merged commit 0c717ec into commons-app:master Mar 9, 2019
@vanshikaarora
Copy link
Contributor Author

Thanks for approving the PR @nicolas-raoul @maskaravivek :)

@vanshikaarora vanshikaarora deleted the inactive_icon branch March 9, 2019 19:02
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