gboolean _bt_core_is_flight_mode_enabled(void)
{
- int isFlightMode = 0;
+ int is_flight_mode = 0;
int ret = -1;
- if (TIZEN_FEATURE_FLIGHTMODE_ENABLED) {
- ret = vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &isFlightMode);
- if (ret != 0)
- BT_ERR("vconf_get_bool failed");
+ ret = vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &is_flight_mode);
+ if (ret != 0)
+ BT_ERR("vconf_get_bool failed");
- return isFlightMode;
- } else {
- return FALSE;
- }
+ return is_flight_mode;
}
static int __bt_call_systemact_service(const char *service_name)
gboolean __bt_handle_is_flight_mode_enabled(void)
{
- if (TIZEN_FEATURE_FLIGHTMODE_ENABLED) {
- int is_flight_mode = 0;
- int ret = -1;
- ret = vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &is_flight_mode);
- if (ret != 0)
- BT_ERR("vconf_get_bool failed");
-
- return (is_flight_mode == 0) ? FALSE : TRUE;
- } else {
- return FALSE;
- }
+ int is_flight_mode = 0;
+ int ret = -1;
+
+ ret = vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &is_flight_mode);
+ if (ret != 0)
+ BT_ERR("vconf_get_bool failed");
+
+ return is_flight_mode;
}
void _bt_handle_adapter_event(GVariant *msg, const char *member)