File tree 1 file changed +10
-1
lines changed
app/src/main/java/fr/free/nrw/commons/category
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 45
45
import java .util .List ;
46
46
import java .util .Set ;
47
47
import java .util .concurrent .CountDownLatch ;
48
+ import java .util .concurrent .ExecutionException ;
48
49
import java .util .concurrent .ScheduledThreadPoolExecutor ;
49
50
50
51
import fr .free .nrw .commons .CommonsApplication ;
@@ -127,8 +128,16 @@ protected ArrayList<String> titleCatQuery() {
127
128
String title = titleDesc .getString ("Title" , "" );
128
129
Log .d (TAG , "Title: " + title );
129
130
130
- //TODO: Add call to TitleCategories AsyncTask here and return ArrayList<String>
131
+ //TODO: How to get results?
132
+ TitleCategories asyncTask = new TitleCategories (title );
133
+ try {
134
+ items = asyncTask .execute ().get ();
135
+ } catch (ExecutionException e ) {
136
+
137
+ } catch (InterruptedException e ) {
131
138
139
+ }
140
+ return items ;
132
141
}
133
142
134
143
/**
You can’t perform that action at this time.
0 commit comments