summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceTable.cpp
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2015-05-04 23:56:22 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-05-04 23:56:24 +0000
commit247bc95cb31c6f7e56814818dc29aa1eb8512e6c (patch)
treecbea46d1c765e4613a8f7ac951e6bce5a5649c00 /tools/aapt2/ResourceTable.cpp
parent2f519532eecd881b034a4e31f57336724604cb56 (diff)
parent6ff19664f9279023c96e5a65c3059e1ef4beac0f (diff)
Merge "AAPT2: Record public status in a more robust way" into mnc-dev
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
-rw-r--r--tools/aapt2/ResourceTable.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/aapt2/ResourceTable.cpp b/tools/aapt2/ResourceTable.cpp
index 7f55395b0cd5..94688606391a 100644
--- a/tools/aapt2/ResourceTable.cpp
+++ b/tools/aapt2/ResourceTable.cpp
@@ -299,16 +299,12 @@ bool ResourceTable::markPublic(const ResourceNameRef& name, const ResourceId res
type->publicStatus.isPublic = true;
entry->publicStatus.isPublic = true;
+ entry->publicStatus.source = source;
if (resId.isValid()) {
type->typeId = resId.typeId();
entry->entryId = resId.entryId();
}
-
- if (entry->values.empty()) {
- entry->values.push_back(ResourceConfigValue{ {}, source, {},
- util::make_unique<Sentinel>() });
- }
return true;
}