File tree 1 file changed +3
-3
lines changed
app/src/main/java/fr/free/nrw/commons/nearby
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -836,10 +836,10 @@ private void passInfoToSheet(Place place) {
836
836
updateMarker (isBookmarked , this .place );
837
837
});
838
838
839
- wikipediaButton .setEnabled (place .hasWikipediaLink ());
839
+ wikipediaButton .setVisibility (place .hasWikipediaLink ()? View . VISIBLE : View . GONE );
840
840
wikipediaButton .setOnClickListener (view -> openWebView (this .place .siteLinks .getWikipediaLink ()));
841
841
842
- wikidataButton .setEnabled (place .hasWikidataLink ());
842
+ wikidataButton .setVisibility (place .hasWikidataLink ()? View . VISIBLE : View . GONE );
843
843
wikidataButton .setOnClickListener (view -> openWebView (this .place .siteLinks .getWikidataLink ()));
844
844
845
845
directionsButton .setOnClickListener (view -> {
@@ -850,7 +850,7 @@ private void passInfoToSheet(Place place) {
850
850
}
851
851
});
852
852
853
- commonsButton .setEnabled (this .place .hasCommonsLink ());
853
+ commonsButton .setVisibility (this .place .hasCommonsLink ()? View . VISIBLE : View . GONE );
854
854
commonsButton .setOnClickListener (view -> openWebView (this .place .siteLinks .getCommonsLink ()));
855
855
856
856
icon .setImageResource (this .place .getLabel ().getIcon ());
You can’t perform that action at this time.
0 commit comments