Search in sources :

Example 1 with DELETE_DECK

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

the class AnkiActivity method deleteDeck.

public void deleteDeck(final long did) {
    try {
        TaskListener listener = deleteDeckListener(did);
        CollectionTask.launchCollectionTask(DELETE_DECK, listener, new TaskData(did));
    } catch (Exception e) {
    }
}
Also used : TaskListener(com.ichi2.async.TaskListener) JSONException(com.ichi2.utils.JSONException) IOException(java.io.IOException) ActivityNotFoundException(android.content.ActivityNotFoundException) DeckRenameException(com.ichi2.anki.exception.DeckRenameException) TaskData(com.ichi2.async.TaskData)

Aggregations

ActivityNotFoundException (android.content.ActivityNotFoundException)1 DeckRenameException (com.ichi2.anki.exception.DeckRenameException)1 TaskData (com.ichi2.async.TaskData)1 TaskListener (com.ichi2.async.TaskListener)1 JSONException (com.ichi2.utils.JSONException)1 IOException (java.io.IOException)1