-
-
Notifications
You must be signed in to change notification settings - Fork 596
feat(YouTube Music): Add in app settings menu #5838
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
Conversation
Settings
patch
...c/main/java/app/revanced/extension/music/settings/preference/ReVancedPreferenceFragment.java
Outdated
Show resolved
Hide resolved
patches/src/main/kotlin/app/revanced/patches/music/misc/debugging/EnableDebuggingPatch.kt
Outdated
Show resolved
Hide resolved
patches/src/main/kotlin/app/revanced/patches/music/misc/settings/SettingsPatch.kt
Outdated
Show resolved
Hide resolved
I just made a working version of the settings because the question of music settings came up #5813 (comment) , #2708 (comment). I'm not very knowledgeable about such things, especially when the abstraction affects important components. |
Abstraction means you should reuse existing code by creating a base function that you call everywhere you need. Or you use the existing one. See the YouTube settings patch as reference |
I'm surprised this works with changes to only 10 files. At first glance it looks like there's a small amount of code duplication, but that should be easy to consolidate. |
A little later I will implement an abstract class for the toolbar. But with bytecode it's not up to me) |
# Conflicts: # extensions/music/build.gradle.kts
Some changes will probably break something in #5806, but after it's merged we can also easily add search in the music settings, although there will probably be few settings there. |
Abstraction should automatically handle this. If you reuse the code, then if you implement the settings patch for music, it will inherit the code for search. If you dont want it to appear dynamically you can add an if (settings.count < X) check or control it by a super class/function parameter |
Search is not abstract now. In order not to do two meaningless jobs, must first merge PR with search, and adapt it to music, or vice versa, first merge music settings, and then adapt search PR. |
Lets merge this first because it's simpler. I don't think search is needed for YT Music because it's going to be like 5 settings (currently only 1 exists). |
Although, maybe merge the other first because it's basically ready. This needs to add at least a few settings and optionally an about screen to make it complete. |
Can we use existing strings from YouTube or do need to create our own for the music? Edit: Although this probably won't work due to the implementation of adding strings via the app id. |
The app id is just a string.
|
I spoke about ads strings for example. Nevermind, I've already made a settings template. But I'll need help filling it out. |
This is not so important yet, but if you noticed, they are also in the regular settings. These settings are still copying the standard ones. I still don't understand why such a popular app has such outdated code in the settings. |
It's not there atleast in the main menu for now.
I agree. Maybe a theme option in the future can address this issue and remove them or change the theme perhaps. |
0923346
to
e812a6c
Compare
I don't think there's anything to test here, everything is working as it should for now. By the way, I thought there would be an option in the settings to change video stream clients? |
Yeah can add a spoof stream client type, even though there isn't a good reason to change it. Can merge today/tomorrow then. |
This comment was marked as resolved.
This comment was marked as resolved.
Ready to merge? |
# [5.38.0-dev.2](v5.38.0-dev.1...v5.38.0-dev.2) (2025-09-16) ### Features * **YouTube Music:** Add `Settings` patch ([#5838](#5838)) ([5e20bd8](5e20bd8))
Settings
patch
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
It would be ideal if there's a ReVanced language setting like YT. The strings and setting are already shared, but it needs a patch change similar YT so the ReVanced modified context is used for the settings UI. revanced-patches/patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt Line 239 in 105f6e0
But that can wait until later, especially since there's so few settings and the translations have improved a lot. |
# [5.38.0](v5.37.0...v5.38.0) (2025-09-16) ### Bug Fixes * **Instagram - Hide navigation buttons:** Support v397.1.0.52.81 ([#5855](#5855)) ([f11d1ef](f11d1ef)) * **Spoof video streams:** Remove Android TV and iOS TV clients, add experimental VisionOS, add temporary fix for `Force original audio` to work with any spoof client ([#5861](#5861)) ([abe3943](abe3943)) * **YouTube - Spoof video streams:** Show settings summary if `Force original audio` is enabled ([3776dda](3776dda)) * **YouTube Music - Spoof video streams:** Fix playback issues when using a cellular network ([fa04c8e](fa04c8e)) * **YouTube Music:** Use correct light/dark mode settings UI ([1475643](1475643)) ### Features * **Instagram:** Add `Hide explore feed` patch ([#5856](#5856)) ([1d65887](1d65887)) * **YouTube - Spoof video streams:** Add iPadOS client ([2726231](2726231)) * **YouTube Music:** Add `Settings` patch ([#5838](#5838)) ([5e20bd8](5e20bd8))
The only thing I want to see in Music right now is a setting to hide the Cast button. Now can try to add that. Maybe with the implementation of settings in Music, more devs will start supporting this product. It seems to me that YouTube Music is being unfairly ignored for now. |
Co-authored-by: LisoUseInAIKyrios <[email protected]>
# [5.38.0-dev.2](ReVanced/revanced-patches@v5.38.0-dev.1...v5.38.0-dev.2) (2025-09-16) ### Features * **YouTube Music:** Add `Settings` patch ([ReVanced#5838](ReVanced#5838)) ([5e20bd8](ReVanced@5e20bd8))
# [5.38.0](ReVanced/revanced-patches@v5.37.0...v5.38.0) (2025-09-16) ### Bug Fixes * **Instagram - Hide navigation buttons:** Support v397.1.0.52.81 ([ReVanced#5855](ReVanced#5855)) ([f11d1ef](ReVanced@f11d1ef)) * **Spoof video streams:** Remove Android TV and iOS TV clients, add experimental VisionOS, add temporary fix for `Force original audio` to work with any spoof client ([ReVanced#5861](ReVanced#5861)) ([abe3943](ReVanced@abe3943)) * **YouTube - Spoof video streams:** Show settings summary if `Force original audio` is enabled ([3776dda](ReVanced@3776dda)) * **YouTube Music - Spoof video streams:** Fix playback issues when using a cellular network ([fa04c8e](ReVanced@fa04c8e)) * **YouTube Music:** Use correct light/dark mode settings UI ([1475643](ReVanced@1475643)) ### Features * **Instagram:** Add `Hide explore feed` patch ([ReVanced#5856](ReVanced#5856)) ([1d65887](ReVanced@1d65887)) * **YouTube - Spoof video streams:** Add iPadOS client ([2726231](ReVanced@2726231)) * **YouTube Music:** Add `Settings` patch ([ReVanced#5838](ReVanced#5838)) ([5e20bd8](ReVanced@5e20bd8))
Adds settings to YouTube Music.
A continuation and completion of #2708