Skip to content

Commit

Permalink
Fix: Correct order of resource config flags for qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed May 1, 2024
1 parent 635c275 commit 3c31e3e
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/main/java/com/reandroid/arsc/value/ResConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -1230,35 +1230,37 @@ public String build(){

appendLanguageAndRegion();

appendFlag(resConfig.getOrientation());
appendFlag(resConfig.getTouchscreen());
appendFlag(resConfig.getDensity());
appendFlag(resConfig.getKeyboard());
appendFlag(resConfig.getNavigation());
appendFlag(resConfig.getInputFlagsKeysHidden());
appendFlag(resConfig.getInputFlagsNavHidden());
appendFlag(resConfig.getGender());

appendScreenWidthHeight();

appendPrefixedNumber("v", resConfig.getSdkVersion());
// append resConfig.getMinorVersion()
appendFlag(resConfig.getScreenLayoutSize());
appendFlag(resConfig.getScreenLayoutLong());
appendFlag(resConfig.getScreenLayoutDir());

appendFlag(resConfig.getUiModeType());
appendFlag(resConfig.getUiModeNight());

appendDp("sw", resConfig.getSmallestScreenWidthDp());
appendDp("w", resConfig.getScreenWidthDp());
appendDp("h", resConfig.getScreenHeightDp());

appendFlag(resConfig.getScreenLayoutSize());
appendFlag(resConfig.getScreenLayoutLong());
appendFlag(resConfig.getScreenLayoutRound());

appendFlag(resConfig.getColorModeWide());
appendFlag(resConfig.getColorModeHdr());

appendFlag(resConfig.getOrientation());
appendFlag(resConfig.getUiModeType());
appendFlag(resConfig.getUiModeNight());

appendFlag(resConfig.getDensity());

appendFlag(resConfig.getTouchscreen());
appendFlag(resConfig.getInputFlagsKeysHidden());
appendFlag(resConfig.getKeyboard());
appendFlag(resConfig.getInputFlagsNavHidden());
appendFlag(resConfig.getNavigation());

appendScreenWidthHeight();

// append resConfig.getMinorVersion()
appendPrefixedNumber("v", resConfig.getSdkVersion());

//appendLocaleNumberingSystem();
appendUnknownBytes();

Expand Down

0 comments on commit 3c31e3e

Please sign in to comment.