Skip to content

Commit

Permalink
fix(YouTube/Overlay buttons): support A/B player layout
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Nov 6, 2024
1 parent 065854e commit a25919b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app.revanced.patches.youtube.utils.fix.bottomui
import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotation.Patch
import app.revanced.patches.youtube.utils.fix.bottomui.fingerprints.ExploderControlsFingerprint
import app.revanced.patches.youtube.utils.fix.bottomui.fingerprints.FullscreenButtonPositionFingerprint
import app.revanced.patches.youtube.utils.fix.bottomui.fingerprints.FullscreenButtonViewStubFingerprint
import app.revanced.util.injectLiteralInstructionBooleanCall
Expand All @@ -12,6 +13,7 @@ import app.revanced.util.injectLiteralInstructionBooleanCall
)
object CfBottomUIPatch : BytecodePatch(
setOf(
ExploderControlsFingerprint,
FullscreenButtonPositionFingerprint,
FullscreenButtonViewStubFingerprint
)
Expand All @@ -23,6 +25,7 @@ object CfBottomUIPatch : BytecodePatch(
* Therefore, this patch only applies to versions that can resolve this fingerprint.
*/
mapOf(
ExploderControlsFingerprint to 45643739,
FullscreenButtonViewStubFingerprint to 45617294,
FullscreenButtonPositionFingerprint to 45627640
).forEach { (fingerprint, literalValue) ->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package app.revanced.patches.youtube.utils.fix.bottomui.fingerprints

import app.revanced.util.fingerprint.LiteralValueFingerprint

internal object ExploderControlsFingerprint : LiteralValueFingerprint(
returnType = "Z",
literalSupplier = { 45643739 },
)

0 comments on commit a25919b

Please sign in to comment.