Merge lp:~karni/ubuntuone-android-files/handling-expired-tokens into lp:ubuntuone-android-files
Status: | Merged |
---|---|
Merged at revision: | 467 |
Proposed branch: | lp:~karni/ubuntuone-android-files/handling-expired-tokens |
Merge into: | lp:ubuntuone-android-files |
Diff against target: |
319 lines (+92/-25) 8 files modified
.classpath (+1/-0) AndroidManifest.xml (+0/-13) res/layout/fragment_sign_in.xml (+2/-1) res/values/ids.xml (+1/-0) res/values/strings.xml (+3/-0) src/com/ubuntuone/android/files/activity/FilesActivity.java (+26/-9) src/com/ubuntuone/android/files/fragment/SignInFragment.java (+29/-0) src/com/ubuntuone/android/files/service/UpDownService.java (+30/-2) |
To merge this branch: | bzr merge lp:~karni/ubuntuone-android-files/handling-expired-tokens |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike McCracken (community) | sanity check | Approve | |
Review via email: mp+195401@code.launchpad.net |
Description of the change
I've allowed myself to throw in a couple smaller fixes on the way, please review by commit.
467 - main focus of this branch. Notify the user if an upload fails in background. If the app is in foreground, http 401 is already handled by local broadcast.
TESTED:
Sign in.
Upload a picture.
Remove token from o.u.c/account.
Upload a picture. Notice it fails, "Please reauthenticate" notification shows up.
Press the notification, sign in.
Note in the logs the retry failed alarm re-registered.
468 - (requested by nessita) Make the soft 'ok' button equivalent to pressing 'Sign in' when entering a password.
TESTED:
On sign in form, use the soft 'Ok' button when entering password. The sign in process continues.
469 - Avoid useless roaming notification, when "Only on Wi-Fi" is selected. It's a one liner I didn't test, I am confident it behaves as I expect.
470 - Removed a widget we don't have time to maintain, which used to crash some devices.
TESTED:
Reinstalled the app. Note the widget is no longer visible in the "widgets" screen on my Nexus 4.
This all looks reasonable. I am not set up to build or test this, so this is just a read-through review.