Skip to content

Commit

Permalink
fix: actually call VideoInformation.setCurrentVideoId first
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 29, 2022
1 parent f99406e commit 5c62d0a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ class VideoIdPatch : BytecodePatch(

injectCall("Lapp/revanced/integrations/videoplayer/VideoInformation;->setCurrentVideoId(Ljava/lang/String;)V")

offset++ // offset so setCurrentVideoId is called before any injected call

return PatchResultSuccess()
}

companion object {
private const val offset = 3 // offset so setCurrentVideoId is called before any injected call
private var offset = 2

private var videoIdRegister: Int = 0
private lateinit var result: MethodFingerprintResult
Expand Down

0 comments on commit 5c62d0a

Please sign in to comment.