Commit Graph

34 Commits (437b188fe8e4c34022a6c71630fa1cea1234ae8b)

Author SHA1 Message Date
Ryan VanderMeulen 437b188fe8 Bug 1838903 - Fix Fenix formatting issues and update baseline 11 months ago
Mugurell 693161d0ea [fenix] Bug 1812518 - Control the snackbar positioning from Fenix
Previously Android-Components - BrowserToolbarBehavior would be responsible
for positioning the snackbar above the toolbar.
With that responsibility removed we can handle in Fenix positioning the
snackbar depending on the toolbar and many more cases - like positioning it
depending on the download dialogs.
1 year ago
mcarare 932823c871 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26844: Fix ktlint issues and remove them from baseline. 2 years ago
Grisha Kruglov 4ad2c1c592 [fenix] For https://github.com/mozilla-mobile/fenix/issues/22569: Remove allopen plugin and Mockable annotations 3 years ago
Gabriel Luong 759194a625 [fenix] For https://github.com/mozilla-mobile/fenix/issues/21776 - Class member can have 'private' visibility 3 years ago
Mugurell 9959334a26 [fenix] For https://github.com/mozilla-mobile/fenix/issues/17917 - Finish migrating all synthetics usages 3 years ago
ekager 5344dceead [fenix] No issue: Update stable androidx and material versions 4 years ago
ekager 0fbfbb5516 [fenix] For https://github.com/mozilla-mobile/fenix/issues/14982 - Show snackbars with padding with static bottom toolbar 4 years ago
Tiger Oakes da57dc840d [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/14131: Move constants to dimens.xml (https://github.com/mozilla-mobile/fenix/pull/14135)
Co-authored-by: Elise Richards <erichards@mozilla.com>
4 years ago
Tiger Oakes 4a3fb70f51 [fenix] Replace setPadding with updatePadding (https://github.com/mozilla-mobile/fenix/pull/14137) 4 years ago
Sawyer Blatz 89ffe16f6a [fenix] For https://github.com/mozilla-mobile/fenix/issues/8775: Removes feature flag for dynamic bottom toolbar 4 years ago
ekager 101d815231 [fenix] For https://github.com/mozilla-mobile/fenix/issues/9890 - Do not display full screen snackbar with toolbar padding 4 years ago
Michael Comella b9fe826cef [fenix] No issue: Move Do and OpenClass to utils pkg.
They were both in their packages by themselves, which feels unnecessary.
Unfortunately, a utils pkg is discouraged by kotlin but we don't have a
better place for them right now. Maybe an annotations/ pkg for the
latter?
4 years ago
Sawyer Blatz 9e5e780a9a [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/9128 & https://github.com/mozilla-mobile/fenix/issues/9222 & https://github.com/mozilla-mobile/fenix/issues/9499: Refactors snackbar creation and fixes placement (https://github.com/mozilla-mobile/fenix/pull/9628) 4 years ago
Sawyer Blatz 1cc4aeea46 [fenix] For https://github.com/mozilla-mobile/fenix/issues/8773: Fixes issue with snackbar placement on ContextMenu (https://github.com/mozilla-mobile/fenix/pull/8942) 4 years ago
Sawyer Blatz 77606ee6e8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/7970: Updates snackbars for accessibility 4 years ago
Sawyer Blatz b86face3d4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/6413: Adds more snackbar positioning logic (https://github.com/mozilla-mobile/fenix/pull/7444)
* For https://github.com/mozilla-mobile/fenix/issues/6413: Adds more snackbar positioning logic

* Refactor
4 years ago
Sawyer Blatz 904a5c02d5 [fenix] For https://github.com/mozilla-mobile/fenix/issues/6413: Fixes snackbar positionining for bottom toolbar (https://github.com/mozilla-mobile/fenix/pull/7415)
* For https://github.com/mozilla-mobile/fenix/issues/6413: Fixes snackbar positionining for bottom toolbar

* For https://github.com/mozilla-mobile/fenix/issues/6413: Cleans up snackbar usage
4 years ago
kglazko 50b8f92201 [fenix] Issue 5366 Vector Drawable Compat (https://github.com/mozilla-mobile/fenix/pull/6904) 5 years ago
Mugurell a87ab2275c [fenix] For 5092 - Show a Snackbar with retry option if sharing to devices fails (https://github.com/mozilla-mobile/fenix/pull/5158)
* For https://github.com/mozilla-mobile/fenix/issues/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 https://github.com/mozilla-mobile/fenix/issues/5092 - Refactor ShareControllerTest

* For https://github.com/mozilla-mobile/fenix/issues/5092: Adds color theming of snackbars
5 years ago
Colin Lee 526c077529 [fenix] For https://github.com/mozilla-mobile/fenix/issues/4128: Migrate Bookmarks to LibState (https://github.com/mozilla-mobile/fenix/pull/4254) 5 years ago
Tiger Oakes 8d3020ebcf [fenix] No issue: Normalize license header comment (https://github.com/mozilla-mobile/fenix/pull/3909) 5 years ago
Tiger Oakes c1ba331cc1 [fenix] Import variables referred to by path 5 years ago
Grisha Kruglov dbc2a132be [fenix] No issue: improve allowUndo
This patch fixes a few issues:
- it was an extension on a CoroutineScope, but that was quite misleading
since the Main dispatcher would be always used regardless of what dispatcher
the owning CoroutineScope was configured with.
- timing was reliant on exact value of the undocumented Snackbar.LENGTH_LONG duration
- coroutine cancellation relied on cooperation of the 'operation' suspend function,
which we can't depend on

New 'allowUndo' fully controls its timing, doesn't imply a dispatcher to its consumers,
and doesn't rely on cooperation of passed-in suspend blocks for cancellation to work.
5 years ago
Colin Lee 28ee8089fd [fenix] For https://github.com/mozilla-mobile/fenix/issues/1710: Create scaffolding for Robolectric tests (https://github.com/mozilla-mobile/fenix/pull/2282) 5 years ago
Jeff Boek e60dda681e [fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/1430 - Implements UX feedback for the FenixSnackbar 5 years ago
Jeff Boek 917f6139a7 [fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/1534 - Fixes snackbar not finding the root layout 5 years ago
Jeff Boek b42256fb23 [fenix] For https://github.com/mozilla-mobile/fenix/issues/1430 - Adds a changelog entry 5 years ago
Jeff Boek c8965e6037 [fenix] For https://github.com/mozilla-mobile/fenix/issues/1430 - Adjust snackbar colors for darkmode 5 years ago
Jeff Boek 5f479b96ac [fenix] No longer require a viewgroup to use FenixSnackbar 5 years ago
Jeff Boek 2efa24c422 [fenix] For https://github.com/mozilla-mobile/fenix/issues/1430 - Addresses nits 5 years ago
Jeff Boek 2df848573a [fenix] For https://github.com/mozilla-mobile/fenix/issues/1430 - Moves magic numbers to constants 5 years ago
Jeff Boek e98a49329e [fenix] For https://github.com/mozilla-mobile/fenix/issues/1430 - Replaces existing snackbar and adapts text size 5 years ago
Jeff Boek 96d4932093 [fenix] For https://github.com/mozilla-mobile/fenix/issues/1430 - Adds a styled Snackbar 5 years ago