Skip to content

Commit

Permalink
[DEX] Rebuild labels after debug remove
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Apr 5, 2024
1 parent 5b12c57 commit 7cd2a7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/reandroid/dex/data/CodeItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ public DebugInfo getOrCreateDebugInfo(){
return header.debugInfoOffset.getOrCreateUniqueItem(this);
}
public void removeDebugInfo(){
if(getDebugInfo() == null){
return;
}
setDebugInfo(null);
getInstructionList().reBuildExtraLines();
}
public void setDebugInfo(DebugInfo debugInfo){
header.debugInfoOffset.setItem(debugInfo);
Expand Down

0 comments on commit 7cd2a7d

Please sign in to comment.