Search in sources :

Example 1 with LOAD_DECK_COUNTS

use of com.ichi2.async.CollectionTask.TASK_TYPE.LOAD_DECK_COUNTS in project AnkiChinaAndroid by ankichinateam.

the class DeckPickerFragment method updateDeckList.

public void updateDeckList(boolean quick) {
    // CollectionHelper.getInstance().closeCollection(true,"refresh");
    TaskListener listener = updateDeckListListener();
    CollectionTask.TASK_TYPE taskType = quick ? LOAD_DECK_QUICK : LOAD_DECK_COUNTS;
    CollectionTask.launchCollectionTask(taskType, listener);
}
Also used : TaskListener(com.ichi2.async.TaskListener) CollectionTask(com.ichi2.async.CollectionTask)

Aggregations

CollectionTask (com.ichi2.async.CollectionTask)1 TaskListener (com.ichi2.async.TaskListener)1