This PR introduces the necessary changes to remember the last scroll position in articles in the reading list.
Motivation
After using the app for a bit, I realized that when I closed an article in my reading list and then reopened it, the last scroll position was lost. I can imagine users often don't read the entire article at once, since this can take some time, especially for longer articles. Therefore, it might be useful that, e.g., when opening an article you started two days before, the position where you left off is recovered so that you don't have to skim through the article trying to remember where you stopped reading.
Main changes
Last Y scroll position is saved in the database in the RSSDbItem.
Saved Y scroll position is loaded if available when opening an article from the reading list. Then, a smooth scroll to that position is performed.
The layout for Activity Read has been slightly simplified (removed unnecessary LinearLayout inside NestedScrollView).
Visibility of the progress bar in ReadActivity has been changed from GONE to INVISIBLE to avoid content slightly "jumping" up when the bar is gone.
Additional details
Since this is my first contribution to the project, I've tried to introduce as few changes as possible. Needless to say, I'm open to any changes :) And thanks for this useful app!
What this PR does...
This PR introduces the necessary changes to remember the last scroll position in articles in the reading list.
Motivation
After using the app for a bit, I realized that when I closed an article in my reading list and then reopened it, the last scroll position was lost. I can imagine users often don't read the entire article at once, since this can take some time, especially for longer articles. Therefore, it might be useful that, e.g., when opening an article you started two days before, the position where you left off is recovered so that you don't have to skim through the article trying to remember where you stopped reading.
Main changes
RSSDbItem
.LinearLayout
insideNestedScrollView
).ReadActivity
has been changed fromGONE
toINVISIBLE
to avoid content slightly "jumping" up when the bar is gone.Additional details
Since this is my first contribution to the project, I've tried to introduce as few changes as possible. Needless to say, I'm open to any changes :) And thanks for this useful app!