Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2022-11-09 22:12:15 +08:00
parent e1737346e4
commit dc427e5277
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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) {