Minor updates to background services

pull/14/head
Tim Su 14 years ago
parent 8db3469871
commit fd0e5b7d43

@ -15,6 +15,7 @@ import android.util.Log;
import com.timsu.astrid.R;
import com.todoroo.andlib.service.ContextManager;
import com.todoroo.andlib.utility.DateUtilities;
import com.todoroo.astrid.core.PluginServices;
import com.todoroo.astrid.utility.Preferences;
@ -92,7 +93,7 @@ public class BackupService extends Service {
if (!Preferences.getBoolean(R.string.backup_BPr_auto_key, true)) {
return;
}
am.setInexactRepeating(AlarmManager.RTC, System.currentTimeMillis() + BACKUP_OFFSET,
am.setInexactRepeating(AlarmManager.RTC, DateUtilities.now() + BACKUP_OFFSET,
BACKUP_INTERVAL, pendingIntent);
}

@ -33,7 +33,7 @@ public class MilkBackgroundService extends Service {
// --- BroadcastReceiver abstract methods
/** Receive the alarm - start the synchronize service! */
/** start the synchronization service. sits in the background */
@Override
public void onStart(Intent intent, int startId) {
try {

Loading…
Cancel
Save