mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-06 00:06:00 +01:00
fix: actually call VideoInformation.setCurrentVideoId
first
This commit is contained in:
parent
f99406eac4
commit
5c62d0a2e0
@ -35,11 +35,13 @@ class VideoIdPatch : BytecodePatch(
|
|||||||
|
|
||||||
injectCall("Lapp/revanced/integrations/videoplayer/VideoInformation;->setCurrentVideoId(Ljava/lang/String;)V")
|
injectCall("Lapp/revanced/integrations/videoplayer/VideoInformation;->setCurrentVideoId(Ljava/lang/String;)V")
|
||||||
|
|
||||||
|
offset++ // offset so setCurrentVideoId is called before any injected call
|
||||||
|
|
||||||
return PatchResultSuccess()
|
return PatchResultSuccess()
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
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 var videoIdRegister: Int = 0
|
||||||
private lateinit var result: MethodFingerprintResult
|
private lateinit var result: MethodFingerprintResult
|
||||||
|
Loading…
Reference in New Issue
Block a user