Fixed
Status Update
Comments
sm...@google.com <sm...@google.com> #2
This isn't fixed in alpha 6 :(. It's easily reproducible by starting a drag with one finger and then tapping somewhere else (think back button) which calls clearSelection().
ap...@google.com <ap...@google.com> #4
Fix is in the works. Until then, a workaround is to avoid calling SelectionTracker#clearSelection while a gesture or mouse-band selection operation is in progress. Such a condition is likely not reflective of user intent (given the ongoing stream of selection operation), but reflective of a stray tap.
State can be monitored using OperationMonitor:
https://developer.android.com/reference/androidx/recyclerview/selection/OperationMonitor.OnChangeListener.html
State can be monitored using OperationMonitor:
sm...@google.com <sm...@google.com> #5
BTW, working on a fix for this (general improvement to state management). My unassigning this issue from me should not be construed as lack of attention to the matter. I just manage issues by hotlist (rather than ownership).
sm...@google.com <sm...@google.com> #6
Rolling all state-related crash reports up into a single tracking bug.
zh...@google.com <zh...@google.com> #8
Received email and the reported buganizer bug about this bug is at b/130621113
sm...@google.com <sm...@google.com> #9
Yup. Fixed. Thanks.
Description
For example, an app that can concatenate images may allow user to pick multiple image files at a time (e.g. a web app
Currently the androidx.recyclerview.selection.Selection class keeps track of user selection with two HashSets, so changing them to use LinkedHashSet (and modifying setProvisionalSelection() a bit) should be doable to keep user selection order in most cases.