use of com.ichi2.async.CollectionTask.TASK_TYPE.IMPORT_REPLACE in project AnkiChinaAndroid by ankichinateam.
the class AnkiActivity method importReplace.
@Override
public void importReplace(String importPath) {
try {
AnkiDroidApp.getSharedPrefs(this).edit().remove(Consts.KEY_SYNC_CHINA_SESSION).apply();
CollectionTask.launchCollectionTask(IMPORT_REPLACE, importReplaceListener(), new TaskData(importPath));
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations