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

Commit 3315cf0f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "codec2: skip adding new color formats for older vendor images" into tm-dev am: 89324d36

parents 8535bd75 89324d36
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -309,11 +309,16 @@ void addSupportedColorFormats(
        if (trait.name.find("android") != std::string::npos) {
            addDefaultColorFormat(COLOR_FormatSurface);
        }

        static const int kVendorSdkVersion = ::android::base::GetIntProperty(
                "ro.vendor.build.version.sdk", android_get_device_api_level());
        if (kVendorSdkVersion >= __ANDROID_API_T__) {
            for (int32_t colorFormat : supportedColorFormats) {
                caps->addColorFormat(colorFormat);
            }
        }
    }
}

class Switch {
    enum Flags : uint8_t {