]> git.saurik.com Git - android/aapt.git/blobdiff - ResourceTable.cpp
Use correct API version for UTF-8 checking
[android/aapt.git] / ResourceTable.cpp
index 66db4500b6de54134e2ede87fb5c63bd156a76f5..a2f085a02b878db6897a9f62581c74d51428bd70 100644 (file)
@@ -2527,7 +2527,7 @@ status_t ResourceTable::flatten(Bundle* bundle, const sp<AaptFile>& dest)
     const size_t N = mOrderedPackages.size();
     size_t pi;
 
-    bool useUTF8 = !bundle->getWantUTF16() && bundle->isUTF8Available();
+    bool useUTF8 = !bundle->getWantUTF16() && bundle->isMinSdkAtLeast(SDK_FROYO);
 
     // Iterate through all data, collecting all values (strings,
     // references, etc).