LeafPic icon indicating copy to clipboard operation
LeafPic copied to clipboard

[dev] Scroll position in album view isn't saved

Open TemporaryAccount0x1 opened this issue 6 years ago • 2 comments

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

TemporaryAccount0x1 avatar Apr 29 '18 14:04 TemporaryAccount0x1

could you have a video showing an example? Then I could attempt solving this issue.

aaronallenCS avatar May 02 '18 23:05 aaronallenCS

@beastlyCoder

I can't make a video but I can give you some Screenshots:

  1. when I open Leafpic I see this (this is the starting scroll position): https://imgur.com/a/c9QQQbI

  2. then I scroll down a bit: https://imgur.com/a/xDw6S7D

  3. now I go into the album "Test (5)": https://imgur.com/a/xILuKOC

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

TemporaryAccount0x1 avatar May 05 '18 07:05 TemporaryAccount0x1