mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 06:42:10 +00:00
New Option (Disable double tap to skip legacy)
I made another Disable Double tap to skip option in case the original option doesn’t work on an older version of the app.
This commit is contained in:
parent
af135dee9f
commit
525fd8cb4d
1 changed files with 9 additions and 0 deletions
|
|
@ -689,12 +689,20 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
%end
|
||||
%end
|
||||
|
||||
// Disable Double Tap to Skip
|
||||
%hook YTMainAppVideoPlayerOverlayViewController
|
||||
- (BOOL)allowDoubleTapToSeekGestureRecognizer {
|
||||
return IsEnabled(@"disableDoubleTapToSkip_enabled") ? NO : %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// Disable Double Tap to Skip (Legacy Version)
|
||||
%hook YTDoubleTapToSeekController
|
||||
- (void)enableDoubleTapToSeek:(BOOL)arg1 {
|
||||
return IsEnabled(@"disableDoubleTapToSkipLegacy_disabled") ? %orig(NO) : %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// Video Controls Overlay Options
|
||||
// Hide CC / Autoplay switch
|
||||
%hook YTMainAppControlsOverlayView
|
||||
|
|
@ -759,6 +767,7 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
%end
|
||||
%end
|
||||
|
||||
// Hide Shadow Overlay Buttons (Play/Pause, Next, previous, Fast forward & Rewind buttons)
|
||||
%group gHideVideoPlayerShadowOverlayButtons
|
||||
%hook YTMainAppControlsOverlayView
|
||||
- (void)layoutSubviews {
|
||||
|
|
|
|||
Loading…
Reference in a new issue