ginatrapani/todo.txt-touch — pull request #279 by chuckbjones (2012-07-29 07:53:02+00:00)
Title: Various fixes for syncing

* Added some logging in Dropbox logic.* Check for 404 errors specifically, instead of assuming all errors mean a non-existent remote file.
* Don't assume a need to push unless we have modified a task. At the same time, never assume a need to pull. Added Generic SYNC_WITH_REMOTE intent for those ambiguous cases. That intent's handler will determine based on a persistent flag whether we need to push. The flag is set whenever a push is initiated directly, and cleared when that push succeeds or when a pull is later manually initiated.
* Only sync after a connectivity change if we previously had no connectivity. Otherwise, we were syncing every few seconds. (whenever there was a signal change?)