diff --git a/services/aams/src/accessibility_settings_config.cpp b/services/aams/src/accessibility_settings_config.cpp index 954c1907..d4b2205f 100644 --- a/services/aams/src/accessibility_settings_config.cpp +++ b/services/aams/src/accessibility_settings_config.cpp @@ -385,7 +385,7 @@ RetError AccessibilitySettingsConfig::SetDaltonizationColorFilter(const uint32_t daltonizationColorFilter = AccessibilityConfig::Protanomaly; } else if (filter == DISPLAY_DALTONIZER_BLUE) { daltonizationColorFilter = AccessibilityConfig::Tritanomaly; - } else if (filter == DISPLAY_DALTONIZER_INVALID) { + } else if (filter == static_cast(DISPLAY_DALTONIZER_INVALID)) { daltonizationColorFilter = 0; } auto ret = datashare_->PutIntValue(DALTONIZATION_COLOR_FILTER_KEY, static_cast(daltonizationColorFilter));