Skip to content

Commit

Permalink
Fix: Parse dex number correctly REAndroid/APKEditor#143
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Oct 29, 2024
1 parent ad04aef commit 23f5147
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/java/com/reandroid/archive/InputSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,7 @@ private void calculateCrc() throws IOException {
this.mLength = outputStream.getLength();
}

public static int getDexNumber(String name){
int i = name.lastIndexOf('/');
if(i < 0){
i = name.lastIndexOf('\\');
}
if(i >= 0){
name = name.substring(i + 1);
}
public static int getDexNumber(String name) {
if(name.equals("classes.dex")){
return 0;
}
Expand Down

0 comments on commit 23f5147

Please sign in to comment.