fix: remove 's' suffix on type directories #10

This commit is contained in:
REAndroid 2023-01-16 03:36:51 -05:00
parent 9e02964884
commit b55904f564

View File

@ -139,11 +139,7 @@ public class ResFile {
EntryBlock entryBlock=pickOne();
TypeBlock typeBlock=entryBlock.getTypeBlock();
StringBuilder builder=new StringBuilder();
String type=typeBlock.getTypeName();
builder.append(type);
if(!type.equals("plurals") && !type.endsWith("s")){
builder.append('s');
}
builder.append(typeBlock.getTypeName());
builder.append(typeBlock.getQualifiers());
builder.append('/');
builder.append(entryBlock.getName());