mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Put sub classes into startUpdatingCategoryList() method
This commit is contained in:
parent
d44869443e
commit
0203a9cdec
1 changed files with 47 additions and 57 deletions
|
|
@ -335,9 +335,14 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
return rootView;
|
return rootView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void startUpdatingCategoryList() {
|
||||||
|
|
||||||
|
|
||||||
final CountDownLatch latch = new CountDownLatch(1);
|
final CountDownLatch latch = new CountDownLatch(1);
|
||||||
|
|
||||||
private class PrefixUpdaterSub extends PrefixUpdater {
|
class PrefixUpdaterSub extends PrefixUpdater {
|
||||||
|
|
||||||
public PrefixUpdaterSub() {
|
public PrefixUpdaterSub() {
|
||||||
super(CategorizationFragment.this);
|
super(CategorizationFragment.this);
|
||||||
|
|
@ -366,7 +371,7 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private class MethodAUpdaterSub extends MethodAUpdater {
|
class MethodAUpdaterSub extends MethodAUpdater {
|
||||||
|
|
||||||
public MethodAUpdaterSub() {
|
public MethodAUpdaterSub() {
|
||||||
super(CategorizationFragment.this);
|
super(CategorizationFragment.this);
|
||||||
|
|
@ -384,12 +389,6 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void startUpdatingCategoryList() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (lastUpdater != null) {
|
if (lastUpdater != null) {
|
||||||
lastUpdater.cancel(true);
|
lastUpdater.cancel(true);
|
||||||
}
|
}
|
||||||
|
|
@ -404,15 +403,6 @@ public class CategorizationFragment extends SherlockFragment{
|
||||||
|
|
||||||
Utils.executeAsyncTask(prefixUpdaterSub);
|
Utils.executeAsyncTask(prefixUpdaterSub);
|
||||||
Utils.executeAsyncTask(methodAUpdaterSub);
|
Utils.executeAsyncTask(methodAUpdaterSub);
|
||||||
/*
|
|
||||||
ArrayList<CategoryItem> itemList = new ArrayList<CategoryItem>(itemSet);
|
|
||||||
|
|
||||||
methodAUpdater = new MethodAUpdater();
|
|
||||||
lastUpdater = new PrefixUpdater();
|
|
||||||
|
|
||||||
Utils.executeAsyncTask(lastUpdater, executor);
|
|
||||||
Utils.executeAsyncTask(methodAUpdater, executor);
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue