From b13b5c690a9d8860e3fb87af7729fe70b22ce2c8 Mon Sep 17 00:00:00 2001 From: misaochan Date: Mon, 22 Aug 2016 18:45:41 +1200 Subject: [PATCH] Change 'attractions' to 'places' --- .../fr/free/nrw/commons/nearby/NearbyPlaces.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java index f0cf13758..299aad4f5 100644 --- a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java +++ b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java @@ -12,15 +12,15 @@ import java.util.List; public class NearbyPlaces { - static List attractions = null; + static List places = null; public static synchronized List get() { - if(attractions != null) { - return attractions; + if(places != null) { + return places; } else { try { - attractions = new ArrayList(); + places = new ArrayList(); // TODO Load in a different thread and show wait dialog StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); @@ -74,7 +74,7 @@ public class NearbyPlaces { image = "https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Point_d_interrogation.jpg/120px-Point_d_interrogation.jpg"; } - attractions.add(new Attraction( + places.add(new Attraction( name, type, // list type, // details @@ -90,7 +90,7 @@ public class NearbyPlaces { e.printStackTrace(); } } - return attractions; + return places; } }