We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 121ae6a commit 4a5ec24Copy full SHA for 4a5ec24
src/main/java/com/reandroid/arsc/chunk/PackageBlock.java
@@ -811,10 +811,10 @@ public String toString(){
811
return builder.toString();
812
}
813
public static boolean isPackageId(int packageId){
814
- return (byte)packageId > 0;
+ return packageId > 0 && packageId <= 0xff;
815
816
public static boolean isResourceId(int resourceId){
817
- return (resourceId >>> 16) != 0;
+ return ((resourceId >> 24) & (byte) (resourceId >> 16)) != 0;
818
819
820
public static void changePackageId(ValueItem valueItem, int packageIdOld, int packageIdNew){
0 commit comments