mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
removed inactive icons from the bottom panel in nearby (#2549)
* removing inactive icons * removing inactive icons * requested changes
This commit is contained in:
parent
8733b7f315
commit
0c717ecad1
1 changed files with 3 additions and 3 deletions
|
|
@ -836,10 +836,10 @@ public class NearbyMapFragment extends DaggerFragment {
|
|||
updateMarker(isBookmarked, this.place);
|
||||
});
|
||||
|
||||
wikipediaButton.setEnabled(place.hasWikipediaLink());
|
||||
wikipediaButton.setVisibility(place.hasWikipediaLink()?View.VISIBLE:View.GONE);
|
||||
wikipediaButton.setOnClickListener(view -> openWebView(this.place.siteLinks.getWikipediaLink()));
|
||||
|
||||
wikidataButton.setEnabled(place.hasWikidataLink());
|
||||
wikidataButton.setVisibility(place.hasWikidataLink()?View.VISIBLE:View.GONE);
|
||||
wikidataButton.setOnClickListener(view -> openWebView(this.place.siteLinks.getWikidataLink()));
|
||||
|
||||
directionsButton.setOnClickListener(view -> {
|
||||
|
|
@ -850,7 +850,7 @@ public class NearbyMapFragment extends DaggerFragment {
|
|||
}
|
||||
});
|
||||
|
||||
commonsButton.setEnabled(this.place.hasCommonsLink());
|
||||
commonsButton.setVisibility(this.place.hasCommonsLink()?View.VISIBLE:View.GONE);
|
||||
commonsButton.setOnClickListener(view -> openWebView(this.place.siteLinks.getCommonsLink()));
|
||||
|
||||
icon.setImageResource(this.place.getLabel().getIcon());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue