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.
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.