Kill noisy stats events

pull/14/head
Tim Su 14 years ago
parent a86fd17671
commit 0b664c2d7e

@ -287,8 +287,6 @@ public class ActFmSyncProvider extends SyncProvider<ActFmTaskContainer> {
Task local = PluginServices.getTaskService().fetchById(task.task.getId(), Task.COMPLETION_DATE);
if(task.task.isCompleted() && !local.isCompleted())
StatisticsService.reportEvent("actfm-task-completed"); //$NON-NLS-1$
} else {
StatisticsService.reportEvent("actfm-task-created"); //$NON-NLS-1$
}
actFmDataService.saveTaskAndMetadata(task);
}

@ -592,8 +592,6 @@ public class GtasksSyncProvider extends SyncProvider<GtasksTaskContainer> {
mergeDates(task.task, local);
if(task.task.isCompleted() && !local.isCompleted())
StatisticsService.reportEvent("gtasks-task-completed"); //$NON-NLS-1$
} else {
StatisticsService.reportEvent("gtasks-task-created"); //$NON-NLS-1$
}
gtasksMetadataService.saveTaskAndMetadata(task);
}

@ -596,8 +596,6 @@ public class ProducteevSyncProvider extends SyncProvider<ProducteevTaskContainer
Task local = PluginServices.getTaskService().fetchById(task.task.getId(), Task.COMPLETION_DATE);
if(task.task.isCompleted() && !local.isCompleted())
StatisticsService.reportEvent("pdv-task-completed"); //$NON-NLS-1$
} else {
StatisticsService.reportEvent("pdv-task-created"); //$NON-NLS-1$
}
dataService.saveTaskAndMetadata(task);
}

@ -204,7 +204,6 @@ public class TaskDao extends DatabaseDao<Task> {
ContentValues values = item.getSetValues();
boolean result = super.createNew(item);
if(result) {
StatisticsService.reportEvent("dao-task-created"); //$NON-NLS-1$
if(Preferences.getBoolean(AstridPreferences.P_FIRST_ACTION, false)) {
StatisticsService.reportEvent("user-first-task"); //$NON-NLS-1$
Preferences.setBoolean(AstridPreferences.P_FIRST_ACTION, false);

Loading…
Cancel
Save