1
0
Fork 0
fenix/app/src/main/java/org/mozilla/fenix/share
Mugurell c5330c6880 For 5092 - Show a Snackbar with retry option if sharing to devices fails (#5158)
* 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
2019-09-26 12:30:28 -07:00
..
listadapters For #2897 - Add Action States To Share Sheet 2019-09-11 11:32:26 -07:00
viewholders For #2897 - Add Action States To Share Sheet 2019-09-11 11:32:26 -07:00
AddNewDeviceFragment.kt For #3077 - Replaces connect another device dialog with a scree 2019-09-18 17:24:43 -07:00
ShareCloseView.kt For #4007 - Refactor AppShareView in standalone Share Views 2019-08-29 18:12:50 -07:00
ShareController.kt For 5092 - Show a Snackbar with retry option if sharing to devices fails (#5158) 2019-09-26 12:30:28 -07:00
ShareFragment.kt For 5092 - Show a Snackbar with retry option if sharing to devices fails (#5158) 2019-09-26 12:30:28 -07:00
ShareInteractor.kt For #2897 - Add Action States To Share Sheet 2019-09-11 11:32:26 -07:00
ShareToAccountDevicesView.kt For #2897 - Add Action States To Share Sheet 2019-09-11 11:32:26 -07:00
ShareToAppsView.kt For #4007 - ShareFragment will set the contained Views' state 2019-08-29 18:12:50 -07:00