diff --git a/etc/para/include/para_handle.h b/etc/para/include/para_handle.h index 45b7b74c..6ecd2dd8 100644 --- a/etc/para/include/para_handle.h +++ b/etc/para/include/para_handle.h @@ -25,8 +25,8 @@ namespace OHOS { static bool SetDefaultIme(int32_t userId, const std::string &imeName); static std::string GetDefaultIme(int32_t userId); - static constexpr const char *DEFAULT_PACKAGE_NAME; - static constexpr const char *DEFAULT_ABILITY_NAME; + static constexpr const char *DEFAULT_PACKAGE_NAME = "com.example.kikakeyboard"; + static constexpr const char *DEFAULT_ABILITY_NAME = "ServiceExtAbility"; private: static const char *DEFAULT_IME_KEY; static constexpr int CONFIG_LEN = 128; diff --git a/etc/para/src/para_handle.cpp b/etc/para/src/para_handle.cpp index 94b6277a..dcc26a92 100644 --- a/etc/para/src/para_handle.cpp +++ b/etc/para/src/para_handle.cpp @@ -19,8 +19,6 @@ namespace OHOS { namespace MiscServices { const char *ParaHandle::DEFAULT_IME_KEY = "persist.sys.default_ime"; - constexpr const char *ParaHandle::DEFAULT_PACKAGE_NAME = "com.example.kikakeyboard"; - constexpr const char *ParaHandle::DEFAULT_ABILITY_NAME = "ServiceExtAbility"; bool ParaHandle::SetDefaultIme(int32_t userId, const std::string &imeName) { if (userId != main_userId) {