mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Rename Description to Label to prevent misunderstandings
This commit is contained in:
parent
27ac8ae0d7
commit
353be8cd67
3 changed files with 5 additions and 2 deletions
|
|
@ -377,9 +377,9 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
|
|||
commonsButton.setOnClickListener(view -> openWebView(place.siteLinks.getCommonsLink()));
|
||||
|
||||
icon.setImageResource(place.getLabel().getIcon());
|
||||
description.setText(place.getLabel().getText());
|
||||
title.setText(place.name);
|
||||
distance.setText(place.distance);
|
||||
description.setText(place.getLongDescription());
|
||||
title.setText(place.name.toString());
|
||||
distance.setText(place.distance.toString());
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import android.widget.ImageView;
|
|||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.mapbox.mapboxsdk.geometry.LatLng;
|
||||
import com.pedrogomez.renderers.Renderer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
|
|||
|
|
@ -33,8 +33,12 @@ public class NearbyAdapterFactoryTest {
|
|||
private static final Place PLACE = new Place("name", Place.Label.AIRPORT,
|
||||
"desc", null, new LatLng(38.6270, -90.1994, 0), null);
|
||||
private static final Place UNKNOWN_PLACE = new Place("name", Place.Label.UNKNOWN,
|
||||
<<<<<<< 27ac8ae0d72011bc651affecf7b1da2100ec927e
|
||||
"?", null, new LatLng(39.7392, -104.9903, 0), null);
|
||||
// ^ "?" is a special value for unknown class names from Wikidata query results
|
||||
=======
|
||||
"desc", null, new LatLng(39.7392, -104.9903, 0), null);
|
||||
>>>>>>> Rename Description to Label to prevent misunderstandings
|
||||
private Place clickedPlace;
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue