OSDN Git Service

disable versioning for objectAnimator to support path motion
authorztenghui <ztenghui@google.com>
Tue, 21 Mar 2017 23:28:57 +0000 (16:28 -0700)
committerztenghui <ztenghui@google.com>
Tue, 21 Mar 2017 23:44:00 +0000 (16:44 -0700)
bug:33527757

Test: replace the AAPT in local SDK, and make sure the propertyX/YName
still works within ObjectAnimator.

Change-Id: Ic9bb14cd228dcf7e4d250bd0f6cb5f0c31a14183

tools/aapt/ResourceTable.cpp

index 60f0d56..391aa47 100644 (file)
@@ -4765,6 +4765,7 @@ status_t ResourceTable::modifyForCompat(const Bundle* bundle,
     const String16 vector16("vector");
     const String16 animatedVector16("animated-vector");
     const String16 pathInterpolator16("pathInterpolator");
+    const String16 objectAnimator16("objectAnimator");
 
     const int minSdk = getMinSdkVersion(bundle);
     if (minSdk >= SDK_LOLLIPOP_MR1) {
@@ -4791,6 +4792,7 @@ status_t ResourceTable::modifyForCompat(const Bundle* bundle,
 
         if (bundle->getNoVersionVectors() && (node->getElementName() == vector16 ||
                     node->getElementName() == animatedVector16 ||
+                    node->getElementName() == objectAnimator16 ||
                     node->getElementName() == pathInterpolator16)) {
             // We were told not to version vector tags, so skip the children here.
             continue;