Fix display status mismatch 32/213732/1
authorhyunho <hhstark.kang@samsung.com>
Wed, 11 Sep 2019 01:08:21 +0000 (10:08 +0900)
committerhyunho <hhstark.kang@samsung.com>
Wed, 11 Sep 2019 01:08:21 +0000 (10:08 +0900)
Change-Id: Ifc855d9197d13001b2ca4b25f2e530c236699894
Signed-off-by: hyunho <hhstark.kang@samsung.com>
component_based/base/stub.cc

index 4425dbe9766c8d438fa2e4d303c7d6ea51dc6be7..25735fd9310d83cdc38f927bb591ebc3f16e14c6 100644 (file)
@@ -570,10 +570,12 @@ extern "C" EXPORT_API int base_frame_get_display_status(
   if (status == component_based::FrameComponent::DisplayStatus::Unknown) {
     LOGE("Invalid context");
     return COMPONENT_ERROR_INVALID_CONTEXT;
+  } else if (status == component_based::FrameComponent::DisplayStatus::On) {
+    *display_status = COMPONENT_DISPLAY_STATUS_ON;
+  } else if (status == component_based::FrameComponent::DisplayStatus::Off) {
+    *display_status = COMPONENT_DISPLAY_STATUS_OFF;
   }
 
-  *display_status = static_cast<component_display_status_e>(status);
-
   return COMPONENT_ERROR_NONE;
 }