mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Put in basic accessor method for categories
This commit is contained in:
parent
37e76461fa
commit
7c40e74f25
1 changed files with 9 additions and 0 deletions
|
|
@ -19,7 +19,9 @@ import com.google.gson.GsonBuilder;
|
|||
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
public class MwVolleyApi {
|
||||
|
||||
|
|
@ -34,6 +36,13 @@ public class MwVolleyApi {
|
|||
categorySet = new HashSet<String>();
|
||||
}
|
||||
|
||||
//To get the list of categories for display
|
||||
public ArrayList<String> getCategoriesGps() {
|
||||
ArrayList<String> list = new ArrayList<String>(categorySet);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
public void request(String coords) {
|
||||
|
||||
String apiUrl = buildUrl(coords);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue