Minor fixes 3

This commit is contained in:
misaochan 2016-01-01 19:15:40 +13:00
parent 7e6b13b102
commit 512ddfdd7d
3 changed files with 4 additions and 12 deletions

View file

@ -48,9 +48,7 @@ public class FilePathConverter {
Log.d("Image", "File path: " + filePath);
return filePath;
}
catch (IllegalArgumentException e) {
} catch (IllegalArgumentException e) {
Log.w("Image", e);
return null;
}

View file

@ -26,7 +26,6 @@ public class GPSExtractor {
try {
exif = new ExifInterface(filePath);
} catch (IOException e) {
Log.w("Image", e);
return null;

View file

@ -156,8 +156,7 @@ public class MwVolleyApi {
gpsCatExists = false;
Log.d("Cat", "gpsCatExists=" + gpsCatExists);
return "No collection of categories";
}
else {
} else {
gpsCatExists = true;
Log.d("Cat", "gpsCatExists=" + gpsCatExists);
return "CATEGORIES FOUND" + categorySet.toString();
@ -168,8 +167,7 @@ public class MwVolleyApi {
public String toString() {
if (query != null) {
return "query=" + query.toString() + "\n" + printSet();
}
else {
} else {
return "No pages found near " + coordsLog;
}
}
@ -206,16 +204,13 @@ public class MwVolleyApi {
if (categories == null || categories.length == 0) {
builder.append("no categories exist\n");
}
else {
} else {
for (Category category : categories) {
builder.append(category.toString());
builder.append("\n");
if (category != null) {
String categoryString = category.toString().replace("Category:", "");
categorySet.add(categoryString);
//Log.d("Set", "category added: " + category.toString());
//Log.d("Set", "Current category Set" + categorySet.toString());
}
}
}