diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-08-14 13:16:18 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2015-08-14 13:41:46 -0700 |
commit | beb9e33bfb79847c25aac98e39f3ea620a953ef7 (patch) | |
tree | 4f795b9e4b2cdf95f1dd6b43fdf02eb9fc438b0e /tools/aapt/ResourceTable.h | |
parent | 81eeef589386483722c21572d9ab6d3f95dd26be (diff) |
AAPT: Fix regression in resource versioning
With a set of resources with the following configurations:
()
(land)
the regression caused any resources that needed to be versioned in configuration () to be lost.
Bug:23038206
Change-Id: I2f1b0313fb780ac241e7aaa487cb37dfb79c36aa
Diffstat (limited to 'tools/aapt/ResourceTable.h')
-rw-r--r-- | tools/aapt/ResourceTable.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/aapt/ResourceTable.h b/tools/aapt/ResourceTable.h index 2c1bec1fb128..c4bdf09d8b19 100644 --- a/tools/aapt/ResourceTable.h +++ b/tools/aapt/ResourceTable.h @@ -99,6 +99,15 @@ public: class Package; class Type; class Entry; + class ConfigList; + + /** + * Exposed for testing. Determines whether a versioned resource should be generated + * based on the other available configurations for that resource. + */ + static bool shouldGenerateVersionedResource(const sp<ConfigList>& configList, + const ConfigDescription& sourceConfig, + const int sdkVersionToGenerate); ResourceTable(Bundle* bundle, const String16& assetsPackage, PackageType type); |