Skip to content

[Refactor] Convert playback buttons to segmented button - #13669

Open
Isira-Seneviratne wants to merge 7 commits into
TeamNewPipe:refactorfrom
Isira-Seneviratne:Improve-playback-buttons
Open

[Refactor] Convert playback buttons to segmented button#13669
Isira-Seneviratne wants to merge 7 commits into
TeamNewPipe:refactorfrom
Isira-Seneviratne:Improve-playback-buttons

Conversation

@Isira-Seneviratne

@Isira-Seneviratne Isira-Seneviratne commented Jul 11, 2026

Copy link
Copy Markdown
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

Before/After Screenshots/Screen Record

  • Before:
image
  • After:
image

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. You can find more info and a video demonstration on this wiki page.

Due diligence

@github-actions github-actions Bot added the size/medium PRs with less than 250 changed lines label Jul 11, 2026
@Isira-Seneviratne
Isira-Seneviratne requested a review from TobiGr July 11, 2026 01:15
@TobiGr TobiGr added rewrite Issues and PRs related to rewrite UX Relating to improving user experience labels Jul 11, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in Rewrite Jul 11, 2026
@TobiGr

TobiGr commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Thank you, but why did you replace the background / headset icon with the play button? Why standard?

@Isira-Seneviratne

Copy link
Copy Markdown
Member Author

Thank you, but why did you replace the background / headset icon with the play button?

That was a mistake on my part, will use the headset icon instead.

Why standard?

I felt that using just "Play all" might be a bit vague for indicating normal playback.

@TobiGr

TobiGr commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

I get this after pressing the popup button. However, I am prompted to approve the permissions for NewPipe and no Popup is created.
Screenshot_20260712_114813

@Isira-Seneviratne

Copy link
Copy Markdown
Member Author

I get this after pressing the popup button. However, I am prompted to approve the permissions for NewPipe and no Popup is created.
Screenshot_20260712_114813

Updated

@absurdlylongusername

Copy link
Copy Markdown
Member

I'm pretty sure that we are not merging changes into refactor anymore and all refactors should now go into dev directly, no?

https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md#creating-a-pull-request-pr

@TobiGr

TobiGr commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Yes, but no because this is an improvement for something that has not been merged to dev yet.

@absurdlylongusername

Copy link
Copy Markdown
Member

@Isira-Seneviratne Am I correct in understanding that from the screenshot, this swaps the background and play all buttons around?

If so, why?

@Isira-Seneviratne

Copy link
Copy Markdown
Member Author

@Isira-Seneviratne Am I correct in understanding that from the screenshot, this swaps the background and play all buttons around?

If so, why?

Yes, it's because of how the player options are ordered in the code.

@AudricV AudricV left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think Player isn't the right string to use. Shouldn't we use something like Play in instead?

Comment on lines +9 to +13
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.PlaylistPlay
import androidx.compose.material.icons.filled.Headphones
import androidx.compose.material.icons.filled.PictureInPicture
import androidx.compose.ui.graphics.vector.ImageVector

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In my opinion you shouldn't add Compose code in the non-UI player one. The player has already a lot of dependencies breaking separation concerns.

Comment thread app/src/main/res/values/strings.xml Outdated
@TobiGr
TobiGr requested a review from AudricV July 30, 2026 12:50
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rewrite Issues and PRs related to rewrite size/medium PRs with less than 250 changed lines UX Relating to improving user experience

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants