mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-16 17:23:11 +00:00
Disable Collapse Button - v
Allows the user to disable the **v** icon in the Video Player.
This commit is contained in:
parent
8ec566537b
commit
df4c49820a
1 changed files with 18 additions and 1 deletions
|
|
@ -602,7 +602,24 @@ static NSString *accessGroupID() {
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Hide Fullscreen Button
|
// Hide Video Player Collapse Button - @arichornlover
|
||||||
|
%hook YTMainAppControlsOverlayView
|
||||||
|
- (void)layoutSubviews {
|
||||||
|
%orig;
|
||||||
|
if (IS_ENABLED(@"disableCollapseButton_enabled")) {
|
||||||
|
if (self.watchCollapseButton) {
|
||||||
|
[self.watchCollapseButton removeFromSuperview];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- (BOOL)watchCollapseButtonHidden {
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
- (void)setWatchCollapseButtonAvailable:(BOOL)available {
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
// Hide Fullscreen Button - @arichornlover
|
||||||
%hook YTInlinePlayerBarContainerView
|
%hook YTInlinePlayerBarContainerView
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
%orig;
|
%orig;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue