Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a media check option on failed media sync #3816

Merged
merged 2 commits into from Nov 7, 2015
Merged

Show a media check option on failed media sync #3816

merged 2 commits into from Nov 7, 2015

Conversation

hssm
Copy link
Member

@hssm hssm commented Nov 7, 2015

Fixes #3782.

The first commit removes some no longer required exception handling. The second commit shows a dialog with a "check media" button for any media sync attempts rejected by the server (0 byte files are one of them).

I didn't feel like snackbars were good for this since all our sync errors have a persisting error dialog, and this one requires user action on top of that.

Only required for Android 2.2 and below which is now unsupported.
@hssm
Copy link
Member Author

hssm commented Nov 7, 2015

After giving it some thought, I realise that the most likely culprit for the 0-byte files is the multimedia editor. There is also a possibility that the importer is doing it but I feel it's less likely.

This commit will save exception reports when the exception is triggered so we should be able to see the file names in the logcat output (I hope) which might give us a clue about what is causing it.

timrae added a commit that referenced this pull request Nov 7, 2015
Show a media check option on failed media sync
@timrae timrae merged commit 2e3d116 into ankidroid:release-2.5 Nov 7, 2015
@timrae
Copy link
Member

timrae commented Nov 7, 2015

Great!

@hssm hssm deleted the media-sync-0byte branch November 7, 2015 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants