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

Refactor removeWatchedStreams() in LocalPlaylistFragment. #8706

Merged

Conversation

Isira-Seneviratne
Copy link
Member

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

  • Refactor the removeWatchedStreams method in LocalPlaylistFragment.

Fixes the following issue(s)

  • Fixes #

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

@Isira-Seneviratne Isira-Seneviratne marked this pull request as ready for review July 29, 2022 04:01
@triallax triallax added the codequality Improvements to the codebase to improve the code quality label Jul 29, 2022
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

The code works as it did before, thank you for the improvement. While you are at it you could also add a commit to fix the persisting behavior of the "remove watched" action. What I mean is, currently if you trigger "remove watched" in a playlist and then, while keeping that playlist open, watch one of its videos (e.g. using "mark as watched"), then the video is instantly removed from the playlist (even though "remove watched" was not clicked one more time). I think this can be fixed by taking only the first item of the getPlaylistStreams Flowable.

@Isira-Seneviratne Isira-Seneviratne force-pushed the Improve_LocalPlaylistFragment branch 2 times, most recently from f9017c8 to 9aa37e1 Compare August 13, 2022 00:34
@sonarcloud
Copy link

sonarcloud bot commented Aug 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@opusforlife2 opusforlife2 added the playlist Anything to do with playlists in the app label Oct 24, 2022
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codequality Improvements to the codebase to improve the code quality playlist Anything to do with playlists in the app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants