Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Migrate mutli-selection to store #18774

Closed
jonalmeida opened this issue Apr 2, 2021 · 0 comments · Fixed by #18778
Closed

Migrate mutli-selection to store #18774

jonalmeida opened this issue Apr 2, 2021 · 0 comments · Fixed by #18778
Assignees
Labels
E2 Estimation Point: easy, half a day to 2 days
Milestone

Comments

@jonalmeida
Copy link
Contributor

jonalmeida commented Apr 2, 2021

We tried the recyclerview-selection library and while it worked, it was difficult to use.

  • We had to keep a track of the selections in order to know when entering/exiting selection mode.
  • The selection was tied tightly to the RecyclerView - this is obvious in hind sight (🤦 ) but when setting up the selection tracker and retrieving the selected items to be used in parent ViewGroup, we were re-creating a selection storage concept all over again.

This is a problem that's already solved in the "library" by using the SelectionInteractor and SelectionHolder along with lib-state.

In #17821, we added the storer, so let's put our multi-select items in that instead.

┆Issue is synchronized with this Jira Task

@jonalmeida jonalmeida self-assigned this Apr 2, 2021
@jonalmeida jonalmeida added the E2 Estimation Point: easy, half a day to 2 days label Apr 2, 2021
@github-actions github-actions bot added the needs:triage Issue needs triage label Apr 2, 2021
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 3, 2021
The interactor and holder are useful outside of the `library` package, so
let's move it up a package level for other components.
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 3, 2021
Removes the recyclerview-selection library and replaces it with the
SelectionHolder/SelectionInteractor with a Store.

This is an implementation that's similar to what we have in other UI
lists (library).
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 3, 2021
Removes the recyclerview-selection library and replaces it with the
SelectionHolder/SelectionInteractor with a Store.

This is an implementation that's similar to what we have in other UI
lists (library).
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
The interactor and holder are useful outside of the `library` package, so
let's move it up a package level for other components.
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
Removes the recyclerview-selection library and replaces it with the
SelectionHolder/SelectionInteractor with a Store.

This is an implementation that's similar to what we have in other UI
lists (library).
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
The interactor and holder are useful outside of the `library` package, so
let's move it up a package level for other components.
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
Removes the recyclerview-selection library and replaces it with the
SelectionHolder/SelectionInteractor with a Store.

This is an implementation that's similar to what we have in other UI
lists (library).
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
Removes the recyclerview-selection library and replaces it with the
SelectionHolder/SelectionInteractor with a Store.

This is an implementation that's similar to what we have in other UI
lists (library).
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
The interactor and holder are useful outside of the `library` package, so
let's move it up a package level for other components.
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
Removes the recyclerview-selection library and replaces it with the
SelectionHolder/SelectionInteractor with a Store.

This is an implementation that's similar to what we have in other UI
lists (library).
jonalmeida added a commit to jonalmeida/fenix that referenced this issue Apr 6, 2021
jonalmeida added a commit that referenced this issue Apr 7, 2021
The interactor and holder are useful outside of the `library` package, so
let's move it up a package level for other components.
jonalmeida added a commit that referenced this issue Apr 7, 2021
Removes the recyclerview-selection library and replaces it with the
SelectionHolder/SelectionInteractor with a Store.

This is an implementation that's similar to what we have in other UI
lists (library).
@gabrielluong gabrielluong added this to the 89 milestone Apr 8, 2021
@gabrielluong gabrielluong removed the needs:triage Issue needs triage label Apr 8, 2021
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Aug 8, 2021
The interactor and holder are useful outside of the `library` package, so
let's move it up a package level for other components.
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Aug 8, 2021
pkirakosyan pushed a commit to gexsi/user-agent-android that referenced this issue Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E2 Estimation Point: easy, half a day to 2 days
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants