Skip to content
  • Mugurell's avatar
    For 5092 - Show a Snackbar with retry option if sharing to devices fails (#5158) · c5330c68
    Mugurell authored
    * For #5092 - Show a Snackbar with retry option if sharing to devices fails
    
    ShareController will contain all the business logic for checking the result
    status of the `share to device` operations. When this fails it will show a
    snackbar which also offer the possibility to retry the just failed operation.
    To allow this even in the event the user has closed the share fragment we'll
    use a GlobalScope's coroutine.
    Refactored out the TabsSharedCallback from ShareFragment because otherwise we
    would have neede to sent through that the just failed operation. After the
    refactor the ShareController is solely responsable for showing the right
    snackbar and handling the retry actions.
    
    * For #5092 - Refactor ShareControllerTest
    
    * For #5092: Adds color theming of snackbars
    c5330c68