mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-09 10:14:25 +02:00
clarify enum and flag
This commit is contained in:
parent
6ed3de8991
commit
ea83939f03
@ -240,4 +240,7 @@ public class AttributeBag {
|
||||
AttributeBagItem[] bagItems=AttributeBagItem.create(resValueBag.getBagItems());
|
||||
return bagItems!=null;
|
||||
}
|
||||
|
||||
public static final short TYPE_ENUM = 0x0001;
|
||||
public static final short TYPE_FLAG = 0x0002;
|
||||
}
|
||||
|
@ -107,8 +107,7 @@ public class AttributeBagItem {
|
||||
return false;
|
||||
}
|
||||
ResValueBagItem item=getBagItem();
|
||||
short low=item.getDataHigh();
|
||||
return low==0x0001;
|
||||
return item.getDataHigh()==AttributeBag.TYPE_ENUM;
|
||||
}
|
||||
public boolean isFlag(){
|
||||
AttributeItemType type=getItemType();
|
||||
@ -116,8 +115,7 @@ public class AttributeBagItem {
|
||||
return false;
|
||||
}
|
||||
ResValueBagItem item=getBagItem();
|
||||
short low=item.getDataHigh();
|
||||
return low==0x0002;
|
||||
return item.getDataHigh()==AttributeBag.TYPE_FLAG;
|
||||
}
|
||||
@Override
|
||||
public String toString(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user