File tree 1 file changed +4
-2
lines changed
app/src/main/java/fr/free/nrw/commons/category
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,11 @@ public class CategoryImageUtils {
26
26
*/
27
27
public static List <Media > getMediaList (NodeList childNodes ) {
28
28
List <Media > categoryImages = new ArrayList <>();
29
+
29
30
for (int i = 0 ; i < childNodes .getLength (); i ++) {
30
31
Node node = childNodes .item (i );
31
- if (getMediaFromPage (node ).getFilename ().substring (0 ,5 ).equals ("File:" )){
32
+
33
+ if (getFileName (node ).substring (0 , 5 ).equals ("File:" )) {
32
34
categoryImages .add (getMediaFromPage (node ));
33
35
}
34
36
}
@@ -46,7 +48,7 @@ public static List<String> getSubCategoryList(NodeList childNodes) {
46
48
List <String > subCategories = new ArrayList <>();
47
49
for (int i = 0 ; i < childNodes .getLength (); i ++) {
48
50
Node node = childNodes .item (i );
49
- subCategories .add (getMediaFromPage (node ). getFilename ( ));
51
+ subCategories .add (getFileName (node ));
50
52
}
51
53
Collections .sort (subCategories );
52
54
return subCategories ;
You can’t perform that action at this time.
0 commit comments