X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/ae0a25e10cf864d00b4e381dbc134057e4f4e598..e2d795d9f2b0baed768f23bce1944fdf52803331:/ResourceTable.cpp diff --git a/ResourceTable.cpp b/ResourceTable.cpp index c438366..6f71a1e 100644 --- a/ResourceTable.cpp +++ b/ResourceTable.cpp @@ -644,6 +644,7 @@ status_t compileResourceFile(Bundle* bundle, const String16 bool16("bool"); const String16 integer16("integer"); const String16 dimen16("dimen"); + const String16 fraction16("fraction"); const String16 style16("style"); const String16 plurals16("plurals"); const String16 array16("array"); @@ -1022,6 +1023,10 @@ status_t compileResourceFile(Bundle* bundle, curTag = &dimen16; curType = dimen16; curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_DIMENSION; + } else if (strcmp16(block.getElementName(&len), fraction16.string()) == 0) { + curTag = &fraction16; + curType = fraction16; + curFormat = ResTable_map::TYPE_REFERENCE|ResTable_map::TYPE_FRACTION; } else if (strcmp16(block.getElementName(&len), bag16.string()) == 0) { curTag = &bag16; curIsBag = true;