Skip to content

Commit 6c997a9

Browse files
author
Dianne Hackborn
committed
aapt now sorts the strings in the resource string pool.
In our current environment with very many translations, this can save a lot of RAM -- for example over 200K in Gmail just by sorting the strings in the Gmail .apk (not the framework). Also add a new aapt command to print the contents of the resource table string pool. Change-Id: I1da037b3e2c377b890833ff57ab158965314ac48
1 parent 2247e3f commit 6c997a9

File tree

11 files changed

+1359
-896
lines changed

11 files changed

+1359
-896
lines changed

core/java/android/content/res/Configuration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ public String toString() {
347347
sb.append(" (no locale)");
348348
}
349349
switch (textLayoutDirection) {
350+
case LocaleUtil.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE: /* ltr not interesting */ break;
350351
case LocaleUtil.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE: sb.append(" rtl"); break;
351352
default: sb.append(" layoutdir="); sb.append(textLayoutDirection); break;
352353
}

include/utils/ResourceTypes.h

Lines changed: 32 additions & 571 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)