use of org.odk.collect.android.tasks.SaveFormIndexTask in project collect by opendatakit.
the class FormEntryActivity method nonblockingCreateSavePointData.
/**
* Create save-points asynchronously in order to not affect swiping performance
* on larger forms.
*/
private void nonblockingCreateSavePointData() {
try {
SavePointTask savePointTask = new SavePointTask(this);
savePointTask.execute();
if (!allowMovingBackwards) {
FormController formController = getFormController();
if (formController != null) {
new SaveFormIndexTask(this, formController.getFormIndex()).execute();
}
}
} catch (Exception e) {
Timber.e("Could not schedule SavePointTask. Perhaps a lot of swiping is taking place?");
}
}
Aggregations