Put sub classes into startUpdatingCategoryList() method

This commit is contained in:
misaochan 2016-01-24 17:14:15 +13:00
parent d44869443e
commit 0203a9cdec

View file

@ -335,9 +335,14 @@ public class CategorizationFragment extends SherlockFragment{
return rootView;
}
private void startUpdatingCategoryList() {
final CountDownLatch latch = new CountDownLatch(1);
private class PrefixUpdaterSub extends PrefixUpdater {
class PrefixUpdaterSub extends PrefixUpdater {
public PrefixUpdaterSub() {
super(CategorizationFragment.this);
@ -366,7 +371,7 @@ public class CategorizationFragment extends SherlockFragment{
}
private class MethodAUpdaterSub extends MethodAUpdater {
class MethodAUpdaterSub extends MethodAUpdater {
public MethodAUpdaterSub() {
super(CategorizationFragment.this);
@ -384,12 +389,6 @@ public class CategorizationFragment extends SherlockFragment{
}
}
private void startUpdatingCategoryList() {
if (lastUpdater != null) {
lastUpdater.cancel(true);
}
@ -404,15 +403,6 @@ public class CategorizationFragment extends SherlockFragment{
Utils.executeAsyncTask(prefixUpdaterSub);
Utils.executeAsyncTask(methodAUpdaterSub);
/*
ArrayList<CategoryItem> itemList = new ArrayList<CategoryItem>(itemSet);
methodAUpdater = new MethodAUpdater();
lastUpdater = new PrefixUpdater();
Utils.executeAsyncTask(lastUpdater, executor);
Utils.executeAsyncTask(methodAUpdater, executor);
*/
}