mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-19 19:09:24 +01:00
Fixed the bug of not setting the location field of the instruction in addInstruction(i,instruction) method
This commit is contained in:
parent
1d597910e2
commit
fe42130f05
@ -213,8 +213,10 @@ public class MutableMethodImplementation implements MethodImplementation {
|
||||
return;
|
||||
}
|
||||
int codeAddress = instructionList.get(index).getCodeAddress();
|
||||
MethodLocation newLoc = new MethodLocation(instruction, codeAddress, index);
|
||||
instructionList.add(index, newLoc);
|
||||
instruction.location = newLoc;
|
||||
|
||||
instructionList.add(index, new MethodLocation(instruction, codeAddress, index));
|
||||
codeAddress += instruction.getCodeUnits();
|
||||
|
||||
for (int i=index+1; i<instructionList.size(); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user