Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5e14581 authored by Andy Mast's avatar Andy Mast
Browse files

Themes: Whitelist animations

Change-Id: I981a8e4741cf03d8649bc4828e597d1a7035e080
parent ad99f081
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5727,9 +5727,9 @@ void ResTable::removeAssetsByCookie(const String8 &packageName, void* cookie)
bool ResTable::isResTypeAllowed(const char* type) const
{
    if (type == NULL) return false;
    const char* allowedResources[] = { "color", "dimen", "drawable", "mipmap", "style" };
    const char* allowedResources[] = { "color", "dimen", "drawable", "mipmap", "style", "anim" };
    // ALLOWED_RESOURCE_COUNT should match the number of elements in allowedResources
    const uint32_t ALLOWED_RESOURCE_COUNT = 5;
    const uint32_t ALLOWED_RESOURCE_COUNT = 6;
    for (int i = 0; i < ALLOWED_RESOURCE_COUNT; i++) {
        if (strstr(type, allowedResources[i]) != NULL) return true;
    }