mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-19 12:07:05 +02:00
revert: AccessFlag extensions not working with IDE
This commit is contained in:
parent
042638a399
commit
0bfb92a0cb
@ -4,12 +4,8 @@ import org.jf.dexlib2.AccessFlags
|
|||||||
import org.jf.dexlib2.builder.BuilderInstruction
|
import org.jf.dexlib2.builder.BuilderInstruction
|
||||||
import org.jf.dexlib2.builder.MutableMethodImplementation
|
import org.jf.dexlib2.builder.MutableMethodImplementation
|
||||||
|
|
||||||
class AccessFlagExtensions {
|
infix fun AccessFlags.or(other: AccessFlags) = this.value or other.value
|
||||||
companion object {
|
infix fun Int.or(other: AccessFlags) = this or other.value
|
||||||
infix fun AccessFlags.or(other: AccessFlags) = this.value or other.value
|
|
||||||
infix fun Int.or(other: AccessFlags) = this or other.value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun MutableMethodImplementation.addInstructions(index: Int, instructions: List<BuilderInstruction>) {
|
fun MutableMethodImplementation.addInstructions(index: Int, instructions: List<BuilderInstruction>) {
|
||||||
for (i in instructions.lastIndex downTo 0) {
|
for (i in instructions.lastIndex downTo 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user