mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +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() {
|
protected ArrayList<String> recentCatQuery() {
|
||||||
ArrayList<String> items = new ArrayList<String>();
|
ArrayList<String> items = new ArrayList<String>();
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mergeLatch.await();
|
mergeLatch.await();
|
||||||
Log.d(TAG, "Waited for merge");
|
Log.d(TAG, "Waited for merge");
|
||||||
|
|
@ -195,13 +194,17 @@ public class CategorizationFragment extends Fragment {
|
||||||
|
|
||||||
if (MwVolleyApi.GpsCatExists.getGpsCatExists()) {
|
if (MwVolleyApi.GpsCatExists.getGpsCatExists()) {
|
||||||
gpsItems.addAll(MwVolleyApi.getGpsCat());
|
gpsItems.addAll(MwVolleyApi.getGpsCat());
|
||||||
|
}
|
||||||
|
|
||||||
List<String> titleItems = new ArrayList<String>(titleCatQuery());
|
List<String> titleItems = new ArrayList<String>(titleCatQuery());
|
||||||
List<String> recentItems = new ArrayList<String>(recentCatQuery());
|
List<String> recentItems = new ArrayList<String>(recentCatQuery());
|
||||||
|
|
||||||
mergedItems.addAll(gpsItems);
|
mergedItems.addAll(gpsItems);
|
||||||
|
Log.d(TAG, "Adding GPS items: " + gpsItems);
|
||||||
mergedItems.addAll(titleItems);
|
mergedItems.addAll(titleItems);
|
||||||
|
Log.d(TAG, "Adding title items: " + titleItems);
|
||||||
mergedItems.addAll(recentItems);
|
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
|
//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);
|
ArrayList<String> mergedItemsList = new ArrayList<String>(mergedItems);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue