From 7cce7bb5d8d68e78a414c176dc89a803f706c9ce Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Wed, 4 Sep 2013 17:41:11 -0700 Subject: [PATCH] Remove scenes from Resource.cpp Part of the Transition API changes, except that the tools/ directory got moved between klp and master, so re-making the same changes here. Issue #10460684 KLP API Review: android.view.transition and android.animation Change-Id: Icedca1dc689285b4b213f9376656b26f18c7f23e --- tools/aapt/Resource.cpp | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index d61792828d7c5..08ad7a0335f0a 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -172,7 +172,7 @@ private: bool isValidResourceType(const String8& type) { return type == "anim" || type == "animator" || type == "interpolator" - || type == "transition" || type == "scene" + || type == "transition" || type == "drawable" || type == "layout" || type == "values" || type == "xml" || type == "raw" || type == "color" || type == "menu" || type == "mipmap"; @@ -934,7 +934,6 @@ status_t buildResources(Bundle* bundle, const sp& assets) sp animators; sp interpolators; sp transitions; - sp scenes; sp xmls; sp raws; sp colors; @@ -947,7 +946,6 @@ status_t buildResources(Bundle* bundle, const sp& assets) ASSIGN_IT(animator); ASSIGN_IT(interpolator); ASSIGN_IT(transition); - ASSIGN_IT(scene); ASSIGN_IT(xml); ASSIGN_IT(raw); ASSIGN_IT(color); @@ -971,7 +969,6 @@ status_t buildResources(Bundle* bundle, const sp& assets) !applyFileOverlay(bundle, assets, &animators, "animator") || !applyFileOverlay(bundle, assets, &interpolators, "interpolator") || !applyFileOverlay(bundle, assets, &transitions, "transition") || - !applyFileOverlay(bundle, assets, &scenes, "scene") || !applyFileOverlay(bundle, assets, &xmls, "xml") || !applyFileOverlay(bundle, assets, &raws, "raw") || !applyFileOverlay(bundle, assets, &colors, "color") || @@ -1038,13 +1035,6 @@ status_t buildResources(Bundle* bundle, const sp& assets) } } - if (scenes != NULL) { - err = makeFileResources(bundle, assets, &table, scenes, "scene"); - if (err != NO_ERROR) { - hasErrors = true; - } - } - if (interpolators != NULL) { err = makeFileResources(bundle, assets, &table, interpolators, "interpolator"); if (err != NO_ERROR) { @@ -1204,21 +1194,6 @@ status_t buildResources(Bundle* bundle, const sp& assets) err = NO_ERROR; } - if (scenes != NULL) { - ResourceDirIterator it(scenes, String8("scene")); - while ((err=it.next()) == NO_ERROR) { - err = compileXmlFile(assets, it.getFile(), &table, xmlFlags); - if (err != NO_ERROR) { - hasErrors = true; - } - } - - if (err < NO_ERROR) { - hasErrors = true; - } - err = NO_ERROR; - } - if (xmls != NULL) { ResourceDirIterator it(xmls, String8("xml")); while ((err=it.next()) == NO_ERROR) {