fix(YouTube Music - Flyout menu components): Flyout menu does not close when Watch on YouTube is clicked

This commit is contained in:
inotia00 2025-02-10 16:48:47 +09:00
parent 4b08cee075
commit a482181cd2

View File

@ -110,7 +110,10 @@ public class FlyoutPatch {
runOnMainThreadDelayed(() -> {
textView.setText(str("revanced_replace_flyout_menu_dismiss_queue_watch_on_youtube_label"));
imageView.setImageResource(getIdentifier("yt_outline_youtube_logo_icon_vd_theme_24", ResourceType.DRAWABLE, clickAbleArea.getContext()));
clickAbleArea.setOnClickListener(view -> VideoUtils.openInYouTube());
clickAbleArea.setOnClickListener(view -> {
clickView(touchOutSideViewRef.get());
VideoUtils.openInYouTube();
});
}, 0L
);
}