Skip to content

Commit 82b5904

Browse files
committed
Changed latch to only wait for titleCats
1 parent 2ea7e6e commit 82b5904

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/java/fr/free/nrw/commons/category/CategorizationFragment.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static interface OnCategoriesSaveHandler {
8080
MethodAUpdater methodAUpdaterSub;
8181

8282
private final ArrayList<String> titleCatItems = new ArrayList<String>();
83-
final CountDownLatch mergeLatch = new CountDownLatch(2);
83+
final CountDownLatch mergeLatch = new CountDownLatch(1);
8484

8585
private ContentProviderClient client;
8686

@@ -171,8 +171,6 @@ protected ArrayList<String> recentCatQuery() {
171171
catch (RemoteException e) {
172172
throw new RuntimeException(e);
173173
}
174-
175-
mergeLatch.countDown();
176174
return items;
177175
}
178176

0 commit comments

Comments
 (0)