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:
oSumAtrIX 2026-03-19 20:11:29 +01:00
parent 733f3bb2cd
commit 7f1874ebe0
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
2 changed files with 13 additions and 0 deletions

View file

@ -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())
}

View file

@ -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)
}
}
}