From 0fe8adeb654f45cbc6f61e070b002d981cf5d18e Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 19 Aug 2010 12:56:10 -0700 Subject: [PATCH] Update aapt to find fragment references. Add knowledge about for layout files and update to reflect the change of the header tag from Header. Change-Id: I91e2a5f204a8e222367985383c1721030c7954d8 --- Resource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Resource.cpp b/Resource.cpp index 31c1722..498b193 100644 --- a/Resource.cpp +++ b/Resource.cpp @@ -2074,12 +2074,13 @@ writeProguardForLayouts(ProguardKeepSet* keep, const sp& assets) // tag:attribute pairs that should be checked in layout files. KeyedVector kLayoutTagAttrPairs; addTagAttrPair(&kLayoutTagAttrPairs, "view", NULL, "class"); + addTagAttrPair(&kLayoutTagAttrPairs, "fragment", NULL, "class"); addTagAttrPair(&kLayoutTagAttrPairs, "fragment", RESOURCES_ANDROID_NAMESPACE, "name"); // tag:attribute pairs that should be checked in xml files. KeyedVector kXmlTagAttrPairs; addTagAttrPair(&kXmlTagAttrPairs, "PreferenceScreen", RESOURCES_ANDROID_NAMESPACE, "fragment"); - addTagAttrPair(&kXmlTagAttrPairs, "Header", RESOURCES_ANDROID_NAMESPACE, "fragment"); + addTagAttrPair(&kXmlTagAttrPairs, "header", RESOURCES_ANDROID_NAMESPACE, "fragment"); const Vector >& dirs = assets->resDirs(); const size_t K = dirs.size(); -- 2.45.2