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); Log.d("Image", "File path: " + filePath);
return filePath; return filePath;
} } catch (IllegalArgumentException e) {
catch (IllegalArgumentException e) {
Log.w("Image", e); Log.w("Image", e);
return null; return null;
} }

View file

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

View file

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