Merge pull request #477 from veyndan/generic

Use parameterized types
This commit is contained in:
Josephine Lim 2017-04-01 21:29:44 +10:00 committed by GitHub
commit a3a6417b45
6 changed files with 16 additions and 17 deletions

View file

@ -49,7 +49,7 @@ public class MwVolleyApi {
return categoryList;
}
public static void setGpsCat(List cachedList) {
public static void setGpsCat(List<String> cachedList) {
categoryList = new ArrayList<>();
categoryList.addAll(cachedList);
Log.d(TAG, "Setting GPS cats from cache: " + categoryList.toString());

View file

@ -408,7 +408,7 @@ public class ShareActivity
MwVolleyApi apiCall = new MwVolleyApi(this);
List displayCatList = app.cacheData.findCategory();
List<String> displayCatList = app.cacheData.findCategory();
boolean catListEmpty = displayCatList.isEmpty();
// If no categories found in cache, call MediaWiki API to match image coords with nearby Commons categories