Skip to content

Drag and drop doesn't persist #8

Description

@CollinsGichuki

Notes that are moved to another position do not persist when the activity is redrawn.
Early diagnosis is that the implementation of ItemTouchHelper.SimpleItemCallback's onMove isn't optimum since Diffutil doesn;t compare the two lists for items position changes.

Fix: remove the current ListAdapter and use a normal recyclerview adapter than will let us compare the two lists. Compare the list positions of the items in the DiffUtil callback areItemsSame method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions