Closed ramack closed 4 years ago
I already experienced this bug but did not figure out how to reproduce.
Thanks for the additional informations, I’ll take a closer look 😉
I guess it is related to AlbumsViewModel.java:216:imageId++; - meaning: binding the view shall not modify the state (imageId) as for sure the ViewModel will continoue to exist (by definition) even for recreating the activity - which will cause rebinding... I think the ImageId passed as parameter to ImagesItemViewModel should be something like images.indexOf(image)
Yes, this is related for sure, but yet I do not have a better solution for sure.. could you try to take a look ?
Describe the bug and how to reproduce As soon as the activity once was refreshed (by sliding down, maybe also after upload) the Photoviewer will start with the last image in the album whatever picture was tapped on.