fix(YouTube): Do not show fullscreen black gradient with 21.03+ experimental app targets
Co-authored-by: LisoUseInAIKyrios <118716522+lisouseinaikyrios@users.noreply.github.com>
This commit is contained in:
parent
733f3bb2cd
commit
7f1874ebe0
2 changed files with 13 additions and 0 deletions
|
|
@ -126,3 +126,10 @@ internal val BytecodePatchContext.playerControlsButtonStrokeFeatureFlagMethod by
|
|||
parameterTypes()
|
||||
instructions(45713296L())
|
||||
}
|
||||
|
||||
internal val BytecodePatchContext.playerOverlayOpacityGradientFeatureFlagMethod by gettingFirstMethodDeclaratively {
|
||||
accessFlags(AccessFlags.PUBLIC, AccessFlags.FINAL)
|
||||
returnType("Z")
|
||||
parameterTypes()
|
||||
instructions(45729621L())
|
||||
}
|
||||
|
|
@ -307,5 +307,11 @@ val playerControlsPatch = bytecodePatch(
|
|||
playerControlsButtonStrokeFeatureFlagMethod.returnLate(false)
|
||||
}
|
||||
}
|
||||
|
||||
if (is_21_03_or_greater) {
|
||||
// If enabled it can show a black gradient on lower part of screen in fullscreen mode.
|
||||
// This override may not be needed if the new bold player overlay icons are in use.
|
||||
playerOverlayOpacityGradientFeatureFlagMethod.returnLate(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue