UnevenSoftware / LeafPic

LeafPic is a fluid, material-designed alternative gallery, it also is ad-free and open source under GPLv3 license. It doesn't miss any of the main features of a stock gallery, and we also have plans to add more useful features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

TemporaryAccount0x1 opened this issue · 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 5a2c821 @ Android 7.0

commented

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:

  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 (33ebb02) 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.