X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/5265c07843024e4257ac46337ec286cf31b06918..f68488ad414c4e47e47c66c4041a8178dbbaff16:/Resource.cpp?ds=sidebyside diff --git a/Resource.cpp b/Resource.cpp index a8ac2ec..5855b56 100644 --- a/Resource.cpp +++ b/Resource.cpp @@ -542,11 +542,11 @@ static bool applyFileOverlay(Bundle *bundle, DefaultKeyedVector > baseFiles = baseGroup->getFiles(); for (size_t i=0; i < baseFiles.size(); i++) { - printf("baseFile %ld has flavor %s\n", i, + printf("baseFile %d has flavor %s\n", i, baseFiles.keyAt(i).toString().string()); } for (size_t i=0; i < overlayFiles.size(); i++) { - printf("overlayFile %ld has flavor %s\n", i, + printf("overlayFile %d has flavor %s\n", i, overlayFiles.keyAt(i).toString().string()); } } @@ -560,7 +560,7 @@ static bool applyFileOverlay(Bundle *bundle, keyAt(overlayGroupIndex)); if(baseFileIndex < UNKNOWN_ERROR) { if (bundle->getVerbose()) { - printf("found a match (%ld) for overlay file %s, for flavor %s\n", + printf("found a match (%d) for overlay file %s, for flavor %s\n", baseFileIndex, overlayGroup->getLeaf().string(), overlayFiles.keyAt(overlayGroupIndex).toString().string()); @@ -775,7 +775,7 @@ status_t buildResources(Bundle* bundle, const sp& assets) * allow UTF-8 to be used. */ if (!bundle->getWantUTF16() - && bundle->isUTF8Available()) { + && bundle->isMinSdkAtLeast(SDK_FROYO)) { xmlFlags |= XML_COMPILE_UTF8; }