-
-
Notifications
You must be signed in to change notification settings - Fork 597
fix(YouTube - Settings): Use an overlay to show search results #5806
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
It seems to me that everything works as it should except for the highlighting of elements in lists. Sometimes the old highlighting is kept. I'll try to fix it somehow, but in my opinion it should be removed altogether. |
Yes I think remove it. It's not important to highlight them. |
Maybe fixed, but need test a bit. |
a8e41b3
to
5a4c7c4
Compare
5a4c7c4
to
7f755b0
Compare
The highlighting in the lists remained buggy, but I got tired of it. If don't refuse to reboot or minimize the app with the list open, everything will be fine. |
If it's buggy then remove the list preference highlighting. It's not a must have feature and it's only slightly useful. |
4d929bc
to
810fa80
Compare
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
The comment isn't visible because it's pending and hasn't been submitted yet (might be a review in progress). Hmm, I think changing that will require clunky code fixes. I think it's ok to show everything in the player menu. The user needs to make a more specific search. |
This comment has been minimized.
This comment has been minimized.
Then maybe we should increase or remove the limit for displaying results? |
Showing 300 results isn't useful either. The user needs to make a more specific search. But maybe bump up to 75 or maybe 100 if search is still fast. |
# Conflicts: # extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/ForceOriginalAudioPatch.java # extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/LicenseActivityHook.java # extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/preference/ReVancedPreferenceFragment.java # patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt
No, this only changes the background of the layout, but the brightness and volume sliders have 6-digit color, and 75% opacity is added programmatically. |
If you think it could be useful, then add opacity to the control dialog. |
change hide cast button to default true
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.
77492cf
to
c900bcc
Compare
...rc/main/java/app/revanced/extension/youtube/sponsorblock/ui/SponsorBlockPreferenceGroup.java
Outdated
Show resolved
Hide resolved
@MarcaDian ready to merge? Everything seems ok now. Any undiscovered small bugs can be fixed later. |
From my side, it seems to be ready. I wanted to try one more shot to transfer the SB settings in the patch, but probably not this time) it is very difficult and it should be done in the new PR, sometime in the future. |
Maybe more of the SB settings can be added like the stats are, but otherwise I don't think it's worth it because there's too many settings that have unique syncing requirements. |
It seems there is some result) Screenrecorder-2025-09-21-14-18-29-808.mp4 |
Is that with the latest here? I can't seem to reproduce the segment titles going wacky. |
I probably didn't explain it correctly, continuing the discussion above, I'm trying to move SB settings to the patch, by analogy with stats and at first it works, along with this I changed all the strings to the new correct view (not This PR is ok for now. |
# [5.41.0](v5.40.0...v5.41.0) (2025-09-27) ### Bug Fixes * **Instagram - Hide navigation buttons:** Remove button based on name ([#5971](#5971)) ([6fa4043](6fa4043)) * **Instagram - Limit feed to followed profiles:** Preserve favorites feed ([#5963](#5963)) ([ef51401](ef51401)) * **TikTok:** Show correct dialog restart text, use correct font color for non-dark mode ([d1a1293](d1a1293)) * **Twitch - Settings:** Fix missing style resources ([#5970](#5970)) ([8c22995](8c22995)) * **YouTube - Hide Shorts components:** Fix "Hide preview comment" ([#5990](#5990)) ([dd4e2cd](dd4e2cd)) * **YouTube - Return YouTube Dislike:** Do not show error toast if API returns 401 status ([#5949](#5949)) ([58d088a](58d088a)) * **YouTube - Settings:** Handle on screen back swipe gesture ([#6002](#6002)) ([6f92b6c](6f92b6c)) * **YouTube - Settings:** Use an overlay to show search results ([#5806](#5806)) ([ece8076](ece8076)) * **YouTube - SponsorBlock:** Show category color dot in voting dialog menu ([4be00d0](4be00d0)) * **YouTube - SponsorBlock:** Show category color in create new segment menu ([#5987](#5987)) ([ffd933c](ffd933c)) * **YouTube - Spoof video streams:** Update client side effects summary text ([a0a62dd](a0a62dd)) ### Features * **Tumblr:** Add `Disable Tumblr TV` patch ([#5959](#5959)) ([212418b](212418b)) * **YouTube - Hide layout components:** Add "Hide Emoji and Timestamp buttons" setting ([#5992](#5992)) ([2b555f6](2b555f6)) * **YouTube - Hide layout components:** Add "Hide view count" and "Hide upload time" settings ([#5983](#5983)) ([7a37d85](7a37d85)) * **YouTube - Loop video:** Add player button to change loop video state ([#5961](#5961)) ([dfb5407](dfb5407)) * **YouTube - Spoof app version:** Add spoof target `20.05.46` that fixes transcript functionality ([5823f0e](5823f0e)) * **YouTube Music:** Add `Check watch history domain name resolution` ([#5979](#5979)) ([8af70fe](8af70fe)) * **YouTube Music:** Add `Sanitize sharing links` patch ([#5952](#5952)) ([45c1ee8](45c1ee8)) * **YouTube Music:** Add `Theme` patch ([#5984](#5984)) ([3bd76d6](3bd76d6)) * **YouTube:** Add `Disable video codecs` patch ([#5981](#5981)) ([bfbffbd](bfbffbd))
This PR changes the way search results are displayed. Instead of manipulating preferences (removing - adding), we use another overlay on top of the settings that shows search results.
This solves the problem of old preference APIs where adding/removing preferences breaks their listeners. (#5439 (comment)).
Refactored some utility methods and moved them to outer classes to avoid code duplication and enable reuse in other apps.
When searching for a disabled child setting, its parent setting is shown above it.
Tap on the path opens a screen containing this setting.
Long-press a search result to scroll directly to the setting.
Added
slide_out_bottom
animation to custom video quality and playback speed dialogs.Search results are limited to 50 items.
Added search history screen instead of dropdown list.
Added "Search Tips" section to the search history screen to highlight some non-obvious features for the user.
Added an opacity slider in the SponsorBlock segment dialogs.
Added search function also to YouTube Music.