Skip to content

Add possibility to remove items using long press, - #13580

Open
rcg67gtv wants to merge 6 commits into
TeamNewPipe:refactorfrom
rcg67gtv:refactor-long-press-to-delete
Open

Add possibility to remove items using long press,#13580
rcg67gtv wants to merge 6 commits into
TeamNewPipe:refactorfrom
rcg67gtv:refactor-long-press-to-delete

Conversation

@rcg67gtv

@rcg67gtv rcg67gtv commented May 28, 2026

Copy link
Copy Markdown

What is it?

  • Bugfix (user facing)
  • Feature (user facing) ⚠️ Your PR must target the refactor branch
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Add possibility to remove items using long press, from tab list and Peertube instance list, for devices that do not support swiping and drag and drop, e.g. Android TV.

Before/After Screenshots/Screen Record

  • Before: You could only swipe to remove.
  • After: Now a long press will give a delete dialog.
screenshot

Related issues

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 May 28, 2026
from tab list and Peertube instance list,
for devices that do not support drag and drop, e.g. Android TV.
@rcg67gtv
rcg67gtv force-pushed the refactor-long-press-to-delete branch from 97e8fa1 to 712ea5b Compare May 28, 2026 12:08
@absurdlylongusername

Copy link
Copy Markdown
Member

Thank you for your contribution to NewPipe. For all future PRs, please follow contribution guidelines:

If you want to help out with an existing bug report or feature request, leave a comment on that issue saying you want to try your hand at it.

You have not done this.

Also this solution does not fix #12635, it only partly addresses it.

If the goal is to improve UX for TV users, it would be better to just have buttons on the item itself to delete instead of having to long press: since the drag icon is useless anyway in this scenario.

Likewise to have buttons to move item up/down: like ⬆⬇❌ on each item, and for deletes to either have a confirmation, or have a way to undo it if you delete by accident (preferably the second).

@rcg67gtv

Copy link
Copy Markdown
Author

Updated screenshot:
Screenshot_20260617-123005

@absurdlylongusername

Copy link
Copy Markdown
Member

@rcg67gtv Thanks for the update.

This is better, but UX-wise it is not sufficient.

For phone users, they can rearrange items by dragging, which is a quick and easy operation that more or less requires one tap.

Your solution requires a long press, and click to move up/down. This is one long press and one press, which is basically 3 presses.

If a user wants to move something multiple times they have to repeat this process, which is tedious.

If the goal is to improve UX for TV users, it would be better to just have buttons on the item itself to delete instead of having to long press: since the drag icon is useless anyway in this scenario.

Likewise to have buttons to move item up/down: like ⬆⬇❌ on each item, and for deletes to either have a confirmation, or have a way to undo it if you delete by accident (preferably the second).

What I meant by this is to have the buttons to move items be on each individual item in the list

image

And the way it would work is you navigate to an item in the list, press once to select it, and then the buttons in the item become available to press.
And you can press move up or move down as many times as you want to move the item.
Press delete and you will be asked to confirm.
To deselect the item you either press back on the remote, or there is button on screen you can press to deselect the item.

@TobiGr TobiGr added device/software specific Issues that only happen on some devices or with some specific hardware/software Android TV Issue is related to Android TV UX Relating to improving user experience settings Relating to NewPipe settings labels Jun 18, 2026
@rcg67gtv

Copy link
Copy Markdown
Author

Your suggestion doesn't really work well for TV, where you do not have touch or a mouse to navigate and just need to use a remote with arrows.

@absurdlylongusername

Copy link
Copy Markdown
Member

How so?

My suggestion doesn't require using a mouse or touch. Instead of long pressing on an item which will show the modal that you have created, it will show buttons on the item itself which you can navigate to using the same remote buttons you used to navigate to the item in the first place.

Instead of having to long press on an item each time you want to move it, you can press once, and move it wherever you want by pressing the relevant buttons, then press back once to deselect or navigate to the deselect button and press that once.

I have used similar configs before in games and other UIs where you could only use arrows keys/D-pad to rearrange items in a list.

@github-actions github-actions Bot added size/large PRs with less than 750 changed lines and removed size/medium PRs with less than 250 changed lines labels Jul 1, 2026
@rcg67gtv

rcg67gtv commented Jul 1, 2026

Copy link
Copy Markdown
Author

Implemented your suggestion. Now has a switch to enable arrows and delete icon, you can navigate to that and use it like you suggested.

@ShareASmile

ShareASmile commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Now it has a switch to enable arrows and delete icon, you can navigate to that and use it like you suggested.

Thanks for the PR! Not a review but the things i noticed while initial testing:-

  1. Switch is hardly visible when turned ON
Screenshot_20260704_075101_NewPipe refactor-long-press-to-delete
  1. It doesn't save its state on rotation, it turns to OFF position each time after rotating the phone.

  2. Down arrow button stops working properly in PeerTube Instances list after some intial juggling.

Please look into these issues.

@rcg67gtv

rcg67gtv commented Jul 4, 2026

Copy link
Copy Markdown
Author

So I feel this solution has grown in scope, from being able to delete entries on Android TV / non touch devices, using a long press. That would be enough to solve the direct problem there (i.e. just add what you want in correct order and delete the rest). Now it is getting more and more complicated. I don't think this is the right direction.

If the long press to delete could just get merged, the other solution can be designed and implemed later. At least we would have a way to do this on Android TV / non touch devices.

I think I will revert to that state and ask it to be merged. These other solutions just feels like scope creep.

@TobiGr

TobiGr commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

I think the new layout proposed in the PR should only be applied non touch devices or when a D-Pad is used. The change should not be made to phones or tables imho.

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

Labels

Android TV Issue is related to Android TV device/software specific Issues that only happen on some devices or with some specific hardware/software settings Relating to NewPipe settings size/large PRs with less than 750 changed lines UX Relating to improving user experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants