mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 09:08:04 +01:00
revert: AccessFlag extensions not working with IDE
This commit is contained in:
parent
042638a399
commit
0bfb92a0cb
1 changed files with 2 additions and 6 deletions
|
@ -4,12 +4,8 @@ import org.jf.dexlib2.AccessFlags
|
|||
import org.jf.dexlib2.builder.BuilderInstruction
|
||||
import org.jf.dexlib2.builder.MutableMethodImplementation
|
||||
|
||||
class AccessFlagExtensions {
|
||||
companion object {
|
||||
infix fun AccessFlags.or(other: AccessFlags) = this.value or other.value
|
||||
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>) {
|
||||
for (i in instructions.lastIndex downTo 0) {
|
||||
|
|
Loading…
Reference in a new issue