Merge lp:~karni/ubuntuone-android-files/sync-on-inexact-alarms into lp:ubuntuone-android-files
Proposed by
Michał Karnicki
Status: | Merged |
---|---|
Approved by: | Chad Miller |
Approved revision: | 48 |
Merged at revision: | 48 |
Proposed branch: | lp:~karni/ubuntuone-android-files/sync-on-inexact-alarms |
Merge into: | lp:ubuntuone-android-files |
Diff against target: |
338 lines (+115/-61) 7 files modified
AndroidManifest.xml (+2/-2) res/values/values.xml (+2/-12) res/xml/prefs.xml (+2/-3) src/com/ubuntuone/android/files/Preferences.java (+13/-7) src/com/ubuntuone/android/files/UbuntuOneFiles.java (+85/-34) src/com/ubuntuone/android/files/syncdaemon/SyncDaemon.java (+4/-2) src/com/ubuntuone/android/files/util/DateUtilities.java (+7/-1) |
To merge this branch: | bzr merge lp:~karni/ubuntuone-android-files/sync-on-inexact-alarms |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Miller (community) | Approve | ||
Review via email: mp+54524@code.launchpad.net |
Description of the change
Instead of using custom sync intervals this uses Androids inexact alarms, which are aligned with alarms of other apps, waking up the device less often and possibly saving battery lifetime. The intervals introduced are: 15", 30", 1h, half day, day, and all are inexact alarms with mentioned advantages.
To post a comment you must log in.
Haven't tested, but this looks good.