mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-04-30 22:54:40 +02:00
14 lines
403 B
Kotlin
14 lines
403 B
Kotlin
package app.revanced.extensions
|
|
|
|
import app.revanced.patcher.smali.toInstruction
|
|
import org.jf.dexlib2.builder.MutableMethodImplementation
|
|
|
|
internal fun MutableMethodImplementation.injectHideCall(
|
|
index: Int,
|
|
register: Int
|
|
) {
|
|
this.addInstruction(
|
|
index,
|
|
"invoke-static { v$register }, Lfi/razerman/youtube/XAdRemover;->HideView(Landroid/view/View;)V".toInstruction()
|
|
)
|
|
} |