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

Allow the user to permanently set a thumbnail #9523

Merged
merged 7 commits into from
Jan 12, 2023

Conversation

Jared234
Copy link
Contributor

@Jared234 Jared234 commented Dec 9, 2022

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 an an option to permanently set a thumbnail with the already existing "Set Thumbnail" feature in the long press menu
  • changed the long press menu of the local playlists
    • Before: Rename/Delete dialog opens
    • After: AlertDialog opens with 3 options: Rename, Delete, Unset Thumbnail. Rename and Delete open the respective dialog. Unset Thumbnail is only enabled if the thumbnail has been permanently set. If you press this option, the permanent playlist thumbnail is unset and a new one gets chosen automatically (first video in the playlist or a default thumbnail if there is no video in the playlist).

Before/After Screenshots/Screen Record

Before After
Before After

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

@Jared234
Copy link
Contributor Author

Sorry for another failed test. All of them worked locally, but i forgot to add the unversioned file "6.json". I will fix this asap.

@opusforlife2
Copy link
Collaborator

Should I run it now?

@Jared234
Copy link
Contributor Author

Jared234 commented Dec 10, 2022

Yes, that would be great. I have really pushed everything now and tested it again locally. Everything should work now.

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.

Looks almost good to me, just two small issues

app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@Jared234 Jared234 requested a review from Stypox January 4, 2023 15:21
@sonarcloud
Copy link

sonarcloud bot commented Jan 4, 2023

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

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.

Code looks good and seems to work fine. Thank you!

@Stypox Stypox merged commit fd8e92c into TeamNewPipe:dev Jan 12, 2023
@Stypox Stypox mentioned this pull request Jan 22, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable users to permanently lock the thumbnail of a playlist
3 participants