1
0
Fork 0
fenix/app/src/main/java/org/mozilla/fenix/utils
Grisha Kruglov 5f42a65c2a 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.
2019-05-30 10:48:59 -07:00
..
ClearableEditText.kt No issue: Missing clear button in edit bookmarks UI 2019-04-15 13:17:41 -05:00
ItsNotBrokenSnack.kt For #1573 - Polish Collections UI Component (#2212) 2019-05-02 10:53:40 -05:00
Settings.kt For #1286 - Add Automatic Font Sizing Preference 2019-05-24 09:42:05 -07:00
Undo.kt No issue: improve allowUndo 2019-05-30 10:48:59 -07:00