]> git.saurik.com Git - android/aapt.git/blobdiff - StringPool.cpp
am 7525c2cf: Merge "Add --max-res-version flag to aapt." into gingerbread
[android/aapt.git] / StringPool.cpp
index 51afc0a946cc38d617c1144743609c98dfb19fe5..a09cec05110b4102f284225d2f0ff0526dc962c5 100644 (file)
@@ -25,8 +25,12 @@ void printStringPool(const ResStringPool* pool)
     const size_t NS = pool->size();
     for (size_t s=0; s<NS; s++) {
         size_t len;
-        printf("String #%ld: %s\n", s,
-                String8(pool->stringAt(s, &len)).string());
+        const char *str = (const char*)pool->string8At(s, &len);
+        if (str == NULL) {
+            str = String8(pool->stringAt(s, &len)).string();
+        }
+
+        printf("String #%ld: %s\n", s, str);
     }
 }