OSDN Git Service

Dedupe resource config pointers
authorKenny Root <kroot@google.com>
Wed, 10 Mar 2010 00:55:23 +0000 (16:55 -0800)
committerKenny Root <kroot@google.com>
Wed, 10 Mar 2010 04:56:41 +0000 (20:56 -0800)
commit7b467d8b44c00d14590c021928b6a9ad5a36348e
tree35a46a47d27f92d94e0bb7c4ecfc1ab2bd90a928
parent4aaf256e95de9d09936b37a6c44e1200e751324e
Dedupe resource config pointers

When there are two configs in a StringPool that would match a string ID
only keep the more generic entry to save some space. This means that if
you have both "es" and "es_US" translations that have the same
translation, the string entry would be removed from the "es_US" config.

Change-Id: I4d619942d35ddb477e2eabe4437b7f02697c24de
tools/aapt/ResourceTable.cpp
tools/aapt/ResourceTable.h