diff --git a/frameworks/inner/ipc/common/bt_def.h b/frameworks/inner/ipc/common/bt_def.h index 1f52ba0bfc6e42b749deefc8c37b3f19c96d2f25..0edab9be94b5c9595ff475294101fef583d962ae 100644 --- a/frameworks/inner/ipc/common/bt_def.h +++ b/frameworks/inner/ipc/common/bt_def.h @@ -1814,7 +1814,7 @@ enum class HfpFeatureType { VOICE_RECOGNITION, }; -enum DialogType { +enum DialogBoxType { BLUETOOTH_SWITCH = 0, }; diff --git a/frameworks/js/napi/src/access/napi_bluetooth_access.cpp b/frameworks/js/napi/src/access/napi_bluetooth_access.cpp index 0a7368ff77e23173f483f23f8268378818765669..b17e963ff2e56b703c90dd41d554f13939d78b5e 100644 --- a/frameworks/js/napi/src/access/napi_bluetooth_access.cpp +++ b/frameworks/js/napi/src/access/napi_bluetooth_access.cpp @@ -151,7 +151,7 @@ napi_value NapiAccess::DialogTypeInit(napi_env env) HILOGD("enter"); napi_value dialogType = nullptr; napi_create_object(env, &dialogType); - SetNamedPropertyByInteger(env, dialogType, static_cast(DialogType::BLUETOOTH_SWITCH), "BLUETOOTH_SWITCH"); + SetNamedPropertyByInteger(env, dialogType, static_cast(DialogBoxType::BLUETOOTH_SWITCH), "BLUETOOTH_SWITCH"); return dialogType; } diff --git a/interfaces/inner_api/include/bluetooth_def.h b/interfaces/inner_api/include/bluetooth_def.h index c6f453b9cf87186529ca08ecb467a432f79a2b6b..14513947a9d98e58673ddf09b1ea76c42965ee59 100644 --- a/interfaces/inner_api/include/bluetooth_def.h +++ b/interfaces/inner_api/include/bluetooth_def.h @@ -1697,7 +1697,7 @@ enum ProfileConnectionState { STATE_DISCONNECTING = 3 // the current profile is being disconnected }; -enum DialogType { +enum DialogBoxType { BLUETOOTH_SWITCH = 0, };