mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +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
|
||||
|
||||
// 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
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
|
|
|
|||
Loading…
Reference in a new issue