mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Reverting CategorizationFragment to original state
This commit is contained in:
parent
4036ad1505
commit
8fb27ce9ad
1 changed files with 3 additions and 7 deletions
|
|
@ -22,6 +22,7 @@ import fr.free.nrw.commons.R;
|
|||
import fr.free.nrw.commons.upload.MwVolleyApi;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
|
@ -29,6 +30,7 @@ import java.util.HashSet;
|
|||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
||||
|
||||
|
||||
|
|
@ -333,6 +335,7 @@ public class CategorizationFragment extends SherlockFragment{
|
|||
return rootView;
|
||||
}
|
||||
|
||||
|
||||
private void startUpdatingCategoryList() {
|
||||
if (lastUpdater != null) {
|
||||
lastUpdater.cancel(true);
|
||||
|
|
@ -351,13 +354,6 @@ public class CategorizationFragment extends SherlockFragment{
|
|||
Utils.executeAsyncTask(lastUpdater, executor);
|
||||
Utils.executeAsyncTask(methodAUpdater, executor);
|
||||
|
||||
//TODO: This needs to be in OnPostExecute() of the subtasks
|
||||
|
||||
categoriesAdapter.setItems(itemList);
|
||||
Log.d(TAG, "After AsyncTask over, set items in adapter to " + itemList.toString());
|
||||
|
||||
categoriesAdapter.notifyDataSetInvalidated();
|
||||
categoriesSearchInProgress.setVisibility(View.GONE);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue