mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Minor fixes
This commit is contained in:
parent
54dedf2cfd
commit
b7ebd202f3
1 changed files with 4 additions and 5 deletions
|
|
@ -130,16 +130,15 @@ public class MwVolleyApi {
|
|||
public String toString() {
|
||||
|
||||
StringBuilder builder = new StringBuilder("PAGEID=" + pageid + " ns=" + ns + " title=" + title + "\n" + " CATEGORIES= ");
|
||||
if (categories != null) {
|
||||
|
||||
if (categories == null || categories.length == 0) {
|
||||
builder.append("no categories exist\n");
|
||||
} else {
|
||||
for (Category category : categories) {
|
||||
builder.append(category.toString());
|
||||
builder.append("\n");
|
||||
}
|
||||
}
|
||||
else {
|
||||
builder.append("no categories exist");
|
||||
builder.append("\n");
|
||||
}
|
||||
|
||||
builder.replace(builder.length() - 1, builder.length(), "");
|
||||
return builder.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue