mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 12:37:37 +02:00
Fix for bug with incorrect removal of previously inserted alignment nop.
This commit is contained in:
@ -205,7 +205,7 @@ public class InstructionWriteUtil {
|
||||
int codeOffsetDelta = codeOffsetShift(currentCodeOffset);
|
||||
if ((currentCodeOffset+codeOffsetDelta)%2 != 0) {
|
||||
if (codeOffsetShifts.contains(currentCodeOffset)) {
|
||||
codeOffsetShifts.remove(codeOffsetDelta);
|
||||
codeOffsetShifts.remove(codeOffsetDelta-1);
|
||||
offsetToNewInstructionMap.remove(currentCodeOffset);
|
||||
} else {
|
||||
codeOffsetShifts.add(codeOffsetDelta, currentCodeOffset);
|
||||
|
Reference in New Issue
Block a user