fix: pack language/region

This commit is contained in:
REAndroid 2023-03-21 13:03:26 -04:00
parent 3e87435a1d
commit 128346351a

View File

@ -862,7 +862,7 @@ public class ResConfig extends FixedBlockContainer
if(in==null || in.length<2){
return out;
}
if (in[2] == 0 || in[2] == '-') {
if (in.length==2 || in[2] == 0 || in[2] == '-') {
out[0] = (byte) in[0];
out[1] = (byte) in[1];
} else {