mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 14:24:25 +02:00
decode hex as long
This commit is contained in:
parent
4566824570
commit
9f49664f08
@ -21,6 +21,10 @@ import java.io.File;
|
||||
import java.util.*;
|
||||
|
||||
public class ApkUtil {
|
||||
public static int parseHex(String hex){
|
||||
long l=Long.decode(hex);
|
||||
return (int) l;
|
||||
}
|
||||
public static String replaceRootDir(String path, String dirName){
|
||||
int i=path.indexOf('/')+1;
|
||||
path=path.substring(i);
|
||||
|
@ -736,7 +736,7 @@ import java.util.*;
|
||||
}
|
||||
public static Entry fromXml(XMLElement element){
|
||||
return new Entry(
|
||||
Integer.decode(element.getAttributeValue("id")),
|
||||
ApkUtil.parseHex(element.getAttributeValue("id")),
|
||||
element.getAttributeValue("type"),
|
||||
element.getAttributeValue("name"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user