mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Change <Attraction> to <Place>
This commit is contained in:
parent
8c11c1b311
commit
c9a38819f0
1 changed files with 4 additions and 2 deletions
|
|
@ -12,13 +12,15 @@ import java.util.List;
|
|||
|
||||
public class NearbyPlaces {
|
||||
|
||||
public static synchronized List<Attraction> get() {
|
||||
static List<Place> attractions = null;
|
||||
|
||||
public static synchronized List<Place> get() {
|
||||
if(attractions != null) {
|
||||
return attractions;
|
||||
}
|
||||
else {
|
||||
try {
|
||||
attractions = new ArrayList<Attraction>();
|
||||
attractions = new ArrayList<Place>();
|
||||
// TODO Load in a different thread and show wait dialog
|
||||
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
|
||||
StrictMode.setThreadPolicy(policy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue