Add possibility to remove items using long press, - #13580
Conversation
from tab list and Peertube instance list, for devices that do not support drag and drop, e.g. Android TV.
97e8fa1 to
712ea5b
Compare
|
Thank you for your contribution to NewPipe. For all future PRs, please follow contribution guidelines:
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 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.
What I meant by this is to have the buttons to move items be on each individual item in the list
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. |
|
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. |
|
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. |
|
Implemented your suggestion. Now has a switch to enable arrows and delete icon, you can navigate to that and use it like you suggested. |
|
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. |
|
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. |



What is it?
refactorbranchDescription of the changes in your PR
Before/After Screenshots/Screen Record
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