Minor fixes

This commit is contained in:
misaochan 2016-01-01 19:07:44 +13:00
parent b14fc01215
commit 38cdf79bbb
2 changed files with 4 additions and 2 deletions

View file

@ -26,6 +26,7 @@ import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.List;
import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ScheduledThreadPoolExecutor;
public class CategorizationFragment extends SherlockFragment{ public class CategorizationFragment extends SherlockFragment{
@ -152,7 +153,7 @@ public class CategorizationFragment extends SherlockFragment{
if (MwVolleyApi.gpsCatExists){ if (MwVolleyApi.gpsCatExists){
Log.d("Cat", "GPS cats found in CategorizationFragment.java" + MwVolleyApi.getGpsCat().toString()); Log.d("Cat", "GPS cats found in CategorizationFragment.java" + MwVolleyApi.getGpsCat().toString());
ArrayList<String> gpsItems = new ArrayList<String>(MwVolleyApi.getGpsCat()); List<String> gpsItems = new ArrayList<String>(MwVolleyApi.getGpsCat());
Log.d("Cat", "GPS items: " + gpsItems.toString()); Log.d("Cat", "GPS items: " + gpsItems.toString());
mergedItems.addAll(gpsItems); mergedItems.addAll(gpsItems);

View file

@ -22,6 +22,7 @@ import java.io.UnsupportedEncodingException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashSet; import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Set;
public class MwVolleyApi { public class MwVolleyApi {
@ -30,7 +31,7 @@ public class MwVolleyApi {
private Context context; private Context context;
private static String coordsLog; private static String coordsLog;
protected static HashSet<String> categorySet; protected static Set<String> categorySet;
//To check later on whether any nearby categories were found //To check later on whether any nearby categories were found
public static boolean gpsCatExists; public static boolean gpsCatExists;