summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceTable.h
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-04-30 17:40:46 -0700
committerAdam Lesinski <adamlesinski@google.com>2015-05-04 16:43:24 -0700
commit6ff19664f9279023c96e5a65c3059e1ef4beac0f (patch)
treef193586403acb034359ffbba1f9211827918fe07 /tools/aapt2/ResourceTable.h
parent24aad163bc88cb10d2275385e9afc3de7f342d65 (diff)
AAPT2: Record public status in a more robust way
This allows us to store the source and comments of a resource's public declaration and avoids issues where there is no default configuration for a publicly declared resource (like with drawables of various densities) and AAPT2 mistakenly took this as an error. Change-Id: I07a2fe9f551daefcce842f205fb219d2fa453ebc
Diffstat (limited to 'tools/aapt2/ResourceTable.h')
-rw-r--r--tools/aapt2/ResourceTable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceTable.h b/tools/aapt2/ResourceTable.h
index 3591d11b2282..94bacd80bbb2 100644
--- a/tools/aapt2/ResourceTable.h
+++ b/tools/aapt2/ResourceTable.h
@@ -35,6 +35,7 @@ namespace aapt {
*/
struct Public {
bool isPublic = false;
+ SourceLine source;
std::u16string comment;
};