mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Minor fixes 3
This commit is contained in:
parent
7e6b13b102
commit
512ddfdd7d
3 changed files with 4 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ public class GPSExtractor {
|
|||
|
||||
try {
|
||||
exif = new ExifInterface(filePath);
|
||||
|
||||
} catch (IOException e) {
|
||||
Log.w("Image", e);
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue