Permalink
Browse files

Schedule the service, if constants.synchronize is set

  • Loading branch information...
timsu committed Jun 11, 2010
1 parent baf9db9 commit 46c09ea3e8078782a3d6e29479b94f80825d441e
Showing with 5 additions and 0 deletions.
  1. +5 −0 astrid/src-legacy/com/timsu/astrid/activities/TaskListSubActivity.java
@@ -68,6 +68,7 @@
import com.timsu.astrid.data.task.TaskIdentifier;
import com.timsu.astrid.data.task.TaskModelForEdit;
import com.timsu.astrid.data.task.TaskModelForList;
+import com.timsu.astrid.sync.SynchronizationService;
import com.timsu.astrid.sync.Synchronizer;
import com.timsu.astrid.sync.Synchronizer.SynchronizerListener;
import com.timsu.astrid.utilities.AstridUtilities;
@@ -981,6 +982,10 @@ else if (syncPreferencesOpened) {
synchronize();
}
+ // schedule synchronization service
+ if(Constants.SYNCHRONIZE)
+ SynchronizationService.scheduleService(getParent());
+
} else if (context.taskArray != null
&& context.taskArray.size() > 0
&& context.taskArray.size() < AUTO_REFRESH_MAX_LIST_SIZE) {

0 comments on commit 46c09ea

Please sign in to comment.