-
Notifications
You must be signed in to change notification settings - Fork 110
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
feat(YouTube - Shorts components): Add styles to custom actions dialog #107
feat(YouTube - Shorts components): Add styles to custom actions dialog #107
Conversation
Uhm the dialog seem not follow app theme |
Hey @Francesco146. Your "Open Video" button was a great idea: through it I was able to automatically bypass the shorts player. Now shorts (even if opened from the navigation button) are always played in the video player, and moreover the next track button works as swipe action (so it's still possible to watch next shorts). Unfortunately I spent much time to disable the ClickListener for shorts thumbnails (THAT FUC**** LITHO!), but at the end I reached the goal. :-D |
Note: uDrop is the key. 😉 Screen_Recording_20241216_072056.mp4 |
that's great news @0xrxL, open a pr! |
icons too big? it would be helpful to also know why you think that :_) edit: if you mean the background color, then no. I tested it for both light and dark theme |
I have it disabled at the moment on the current build, but it's handled in this way:
There's just one annyoing bug: Upper-Left back button appears after click on shorts navigation bug. I need to find a way to hide it. |
@Francesco146 this is the patch, if you want to give it a look: https://github.com/0xrxL/uDrop/blob/28de4031b9ba0cc9bc35b0b9c87d1f8c80b9f638/Code/Patches.cs#L5761 |
i marked this as draft because i want to mimic the fly out menu more. |
@Francesco146 To finalize my patch, I'll probably adopt a hybrid solution: shorts player accessible from navigation bar, and video player for shorts on home feed and search list. I already have a value map of navigation buttons, so I can exactly know which I clicked. After this, I'll post here the integration code I used and the smali file to patch. Will be more easy for everyone involved in an eventual port to RvX. |
after this patch, I'll consider this if inotia won't beat be on time xD |
@0xrxL Uhm can u share how u hook it. I'm interested in porting it into rvx xD As I read in your source code, u seem hook |
Yeah...but from a specific method, which contains the following strings:
On version 19.50.36 (for example) is idx.smali. This method create the entire shorts player layout, so if you put a return-void here you'll disable every shorts preview button. |
Can u take a screenshot of the code after hooking. I still don't seem to understand your idea very well. |
If you already found the method, just put the following code at the method start:
|
what about the automatic "Playback in Feed", the player reacts well? |
It should. I blocked the shorts layout onCreate(), used by Litho. In any case you can do further tests before create a PR. 👍 |
…code to shared classes
It looks like it's okay to merge now |
todos:
|
related to this PR i think it's ok :) |
…ust be enabled to appear in the toolbar or flyout menu)
…enu` is turned off
Thanks |
i didn't find any solution for the dialog menu not dismissed, but i think it's an issue not related to the PR, and it's reproducible on upstream
edit: another bug is that the Open Video action doesn't check for the "Enable open link directly" setting
Preview