Merge "Change the way to conver Mbs to Wcs and vice versa" into tizen_2.1
[platform/framework/native/appfw.git] / src / system / FSys_DeviceManagerImpl.cpp
index 0137a67..731e5a2 100644 (file)
@@ -1091,6 +1091,7 @@ _DeviceManagerImpl::SendEvent(runtime_info_key_e key)
                type = DEVICE_TYPE_CHARGER;
 
                bool state = false;
+               ret = runtime_info_get_value_bool(RUNTIME_INFO_KEY_CHARGER_CONNECTED, &state);
                SysTryReturnVoidResult(NID_SYS, ret == RUNTIME_INFO_ERROR_NONE, E_SYSTEM, "It is failed to get charger state.");
 
                if (state == true)