mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Added mergeLatch.await() before titleCatItems are returned
This commit is contained in:
parent
a04312919e
commit
b9f6bd55ca
1 changed files with 7 additions and 2 deletions
|
|
@ -142,8 +142,13 @@ public class CategorizationFragment extends Fragment {
|
|||
mergeLatch.countDown();
|
||||
}
|
||||
};
|
||||
Utils.executeAsyncTask(titleCategoriesSub);
|
||||
|
||||
titleCategoriesSub.execute();
|
||||
Log.d(TAG, "TitleCatItems in titleCatQuery: " + titleCatItems);
|
||||
try {
|
||||
mergeLatch.await();
|
||||
} catch (InterruptedException e) {
|
||||
Log.e(TAG, "Interrupted exception: ", e);
|
||||
}
|
||||
return titleCatItems;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue