]> git.saurik.com Git - android/aapt.git/commitdiff
Output Proguard options for also overlay layouts.
authorYing Wang <wangying@google.com>
Mon, 20 Jun 2011 22:41:08 +0000 (15:41 -0700)
committerYing Wang <wangying@google.com>
Mon, 20 Jun 2011 22:41:08 +0000 (15:41 -0700)
Change-Id: I7bfac476247bd7b532510e295cb1a3e61e9af88b

Resource.cpp

index 730bd71160f8ce0b9b99fdc1a2c8a2ddda3cb2d0..b4ac92987d6ead86ae44028d16a1519c68d9ad75 100644 (file)
@@ -2194,6 +2194,11 @@ writeProguardForLayouts(ProguardKeepSet* keep, const sp<AaptAssets>& assets)
             }
         }
     }
+    // Handle the overlays
+    sp<AaptAssets> overlay = assets->getOverlay();
+    if (overlay.get()) {
+        return writeProguardForLayouts(keep, overlay);
+    }
     return NO_ERROR;
 }