Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feed] Save "Show watched items" toggle's status #7370

Merged
merged 4 commits into from
Nov 12, 2021

Conversation

iambaji
Copy link
Contributor

@iambaji iambaji commented Nov 8, 2021

default sharedpreference is used to persist and retrieve show watched menu option toggle state

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • added sharedprefrences in feed ViewModel, wrote two functions to save and retrieve "show watched items" boolean state
  • used the same functions in feedfragment onitemoptionselected() function of fragment

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

default sharedpreference is used to persist and retrieve show watched menu option toggle state
@litetex litetex added the feed Issue is related to the feed label Nov 8, 2021
@Fassi96
Copy link

Fassi96 commented Nov 10, 2021

Unfortunately, nothing has changed in terms of behavior.

Copy link
Member

@litetex litetex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Tested it, works as expected.

Just one minor thing:

Copy link
Member

@litetex litetex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now.

I did some minor renaming and cleanup and fixed the problem from #7362 (comment) on the fly.

Ready for merging when no further problems occur.

@litetex litetex merged commit 18ce86c into TeamNewPipe:dev Nov 12, 2021
@opusforlife2 opusforlife2 changed the title added show watched items toggle preference [Feed] Save "Show watched items" toggle's status Nov 27, 2021
This was referenced Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feed Issue is related to the feed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feed] "Show watched items" not saved
3 participants