feat(res): support grammar inflection flag in res config (#2270)

This commit is contained in:
Skylot
2024-09-08 21:49:13 +01:00
parent 3f9aa34057
commit 5d1f0b8cae
3 changed files with 25 additions and 5 deletions
@@ -111,6 +111,7 @@ public class CommonProtoParser extends ParserConstants {
byte screenLayout2 = (byte) (c.getLayoutDirectionValue() | c.getScreenRoundValue());
byte navigation = (byte) c.getNavigationValue();
byte inputFlags = (byte) (c.getKeysHiddenValue() | c.getNavHiddenValue());
byte grammaticalInflection = (byte) c.getGrammaticalGenderValue();
int size = c.getSerializedSize();
byte uiMode = (byte) (c.getUiModeNightValue() | c.getUiModeTypeValue());
@@ -119,7 +120,7 @@ public class CommonProtoParser extends ParserConstants {
return new EntryConfig(mcc, mnc, language, new char[] { '\00' },
orientation, touchscreen, density, keyboard, navigation,
inputFlags, screenWidth, screenHeight, sdkVersion,
inputFlags, grammaticalInflection, screenWidth, screenHeight, sdkVersion,
screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp,
screenHeightDp, new char[] { '\00' }, new char[] { '\00' }, screenLayout2,
colorMode, false, size).getQualifiers();