mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 07:41:59 +00:00
Merge pull request #529 from therealFoxster/main
Update DontEatMyContent (1.0.0 -> 1.0.2)
This commit is contained in:
commit
b52aaac2d1
1 changed files with 16 additions and 0 deletions
16
uYouPlus.xm
16
uYouPlus.xm
|
|
@ -927,6 +927,7 @@ NSLayoutConstraint *widthConstraint, *heightConstraint, *centerXConstraint, *cen
|
||||||
- (void)didSwipeToExitFullscreen {
|
- (void)didSwipeToExitFullscreen {
|
||||||
%orig; deactivate();
|
%orig; deactivate();
|
||||||
}
|
}
|
||||||
|
// Get video aspect ratio; doesn't work for some users; see -(void)resetForVideoWithAspectRatio:(double)
|
||||||
- (void)singleVideo:(id)arg1 aspectRatioDidChange:(CGFloat)arg2 {
|
- (void)singleVideo:(id)arg1 aspectRatioDidChange:(CGFloat)arg2 {
|
||||||
aspectRatio = arg2;
|
aspectRatio = arg2;
|
||||||
if (aspectRatio == 0.0) {
|
if (aspectRatio == 0.0) {
|
||||||
|
|
@ -958,6 +959,21 @@ NSLayoutConstraint *widthConstraint, *heightConstraint, *centerXConstraint, *cen
|
||||||
%orig(NO);
|
%orig(NO);
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook YTVideoZoomOverlayController
|
||||||
|
// Get video aspect ratio; fallback for -(void)singleVideo:(id)aspectRatioDidChange:(CGFloat)
|
||||||
|
- (void)resetForVideoWithAspectRatio:(double)arg1 {
|
||||||
|
aspectRatio = arg1;
|
||||||
|
%log;
|
||||||
|
if (aspectRatio == 0.0) {}
|
||||||
|
else if (aspectRatio < THRESHOLD) {
|
||||||
|
deactivate();
|
||||||
|
} else {
|
||||||
|
activate();
|
||||||
|
}
|
||||||
|
%orig(arg1);
|
||||||
|
}
|
||||||
|
%end
|
||||||
%end // gDontEatMyContent
|
%end // gDontEatMyContent
|
||||||
|
|
||||||
// DontEatMycontent - detecting device model
|
// DontEatMycontent - detecting device model
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue