amahi / android

Amahi Android App
GNU General Public License v3.0
164 stars 279 forks source link

Adding Retry Action to Snackbar when File Upload Fails #749

Closed Prakhar-Agarwal-byte closed 3 years ago

Prakhar-Agarwal-byte commented 3 years ago

Describe the issue

When a file upload is not successful a snackbar shows up but it does not have a retry action in it. But when a camera upload fails the snackbar has a retry action. I think we should add retry action to the snackbar when file upload fails, so that users can try again to upload files, without much hassle.

To Reproduce or Feature details Steps to reproduce the behavior:

  1. Click on FAB with a plus icon
  2. When file upload fails, snackbar without retry action shows up.
  3. When the camera upload fails, a snackbar with retry action shows up.

Current behavior

Uploading file

https://user-images.githubusercontent.com/17739006/109421284-af051f00-79fc-11eb-992c-a87db61ab03c.mp4

Uploading camera image

https://user-images.githubusercontent.com/17739006/109421297-b75d5a00-79fc-11eb-8fa4-5b88192786fa.mp4

Expected behavior

Uploading file

https://user-images.githubusercontent.com/17739006/109421375-0a371180-79fd-11eb-9ef5-93046f5787c3.mp4

Smartphone (please complete as much of the following information as possible):