We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6b8f7b + 61361f3 commit 09bea71Copy full SHA for 09bea71
tools/aapt/StringPool.cpp
@@ -71,14 +71,16 @@ String8 StringPool::entry::makeConfigsString() const {
71
}
72
73
int StringPool::entry::compare(const entry& o) const {
74
- // Strings with styles go first, to reduce the size of the
75
- // styles array.
+ // Strings with styles go first, to reduce the size of the styles array.
+ // We don't care about the relative order of these strings.
76
if (hasStyles) {
77
return o.hasStyles ? 0 : -1;
78
79
if (o.hasStyles) {
80
return 1;
81
82
+
83
+ // Sort unstyled strings by type, then by logical configuration.
84
int comp = configTypeName.compare(o.configTypeName);
85
if (comp != 0) {
86
return comp;
0 commit comments