LeafPic
LeafPic copied to clipboard
[dev] Scroll position in album view isn't saved
When you open leafpic it shows your albums, if you scroll down and go into an album and then press back the scroll position is reset to the top. Interestingly this behaviour only happens for the album view but not for the images view so if you go into an album and scoll down and then go into an image and then press back the position is saved. So the position is saved for media but not for albums.
Using dev build based on commit 5a2c821e6ea90348aa0fb4002d4fe24ecb70565b @ Android 7.0
could you have a video showing an example? Then I could attempt solving this issue.
@beastlyCoder
I can't make a video but I can give you some Screenshots:
-
when I open Leafpic I see this (this is the starting scroll position): https://imgur.com/a/c9QQQbI
-
then I scroll down a bit: https://imgur.com/a/xDw6S7D
-
now I go into the album "Test (5)": https://imgur.com/a/xILuKOC
-
I press back: what actually happens is that the scroll is reset to the starting position: https://imgur.com/a/c9QQQbI
expected behavior save the scroll position: https://imgur.com/a/xDw6S7D
not sure if it helps but my sort order is date desc. I retested on the latest commit (33ebb02a53f29d9ebe4f4dc79cd577a0a3005587) and it's still the same behaviour.
edit: as I have noted before when it comes to media (not albums) then the scroll position is saved. So when you're in an album with 100+ media and you scroll down and then go into a media and back the scroll position is saved and you're brought back to the position you were. So this is only an issue for albums not for media itself.