mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add logs
This commit is contained in:
parent
0fcdf4e5f9
commit
32246eebd5
1 changed files with 4 additions and 1 deletions
|
|
@ -154,7 +154,6 @@ public class CategorizationFragment extends Fragment {
|
|||
protected ArrayList<String> recentCatQuery() {
|
||||
ArrayList<String> items = new ArrayList<String>();
|
||||
|
||||
|
||||
try {
|
||||
mergeLatch.await();
|
||||
Log.d(TAG, "Waited for merge");
|
||||
|
|
@ -195,13 +194,17 @@ public class CategorizationFragment extends Fragment {
|
|||
|
||||
if (MwVolleyApi.GpsCatExists.getGpsCatExists()) {
|
||||
gpsItems.addAll(MwVolleyApi.getGpsCat());
|
||||
}
|
||||
|
||||
List<String> titleItems = new ArrayList<String>(titleCatQuery());
|
||||
List<String> recentItems = new ArrayList<String>(recentCatQuery());
|
||||
|
||||
mergedItems.addAll(gpsItems);
|
||||
Log.d(TAG, "Adding GPS items: " + gpsItems);
|
||||
mergedItems.addAll(titleItems);
|
||||
Log.d(TAG, "Adding title items: " + titleItems);
|
||||
mergedItems.addAll(recentItems);
|
||||
Log.d(TAG, "Adding recent items: " + recentItems);
|
||||
|
||||
//Needs to be an ArrayList and not a List unless we want to modify a big portion of preexisting code
|
||||
ArrayList<String> mergedItemsList = new ArrayList<String>(mergedItems);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue