Skip to content

Commit

Permalink
fix(ime_pinyin): fix the problem that lv_ime_pinyin is not hidden tog…
Browse files Browse the repository at this point in the history
…ether with the keyboard (#3540)

In fact, the use of lv_ime_pinyin does not need to use the lv_ime_pinyin object itself, so we decided to hide it to avoid some other unnecessary problems.
  • Loading branch information
100ask committed Aug 2, 2022
1 parent 25f311e commit 35d845b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/others/ime/lv_ime_pinyin.c
Expand Up @@ -562,8 +562,7 @@ static void lv_ime_pinyin_constructor(const lv_obj_class_t * class_p, lv_obj_t *
lv_memzero(pinyin_ime->py_num, sizeof(pinyin_ime->py_num));
lv_memzero(pinyin_ime->py_pos, sizeof(pinyin_ime->py_pos));

lv_obj_set_size(obj, LV_PCT(100), LV_PCT(55));
lv_obj_align(obj, LV_ALIGN_BOTTOM_MID, 0, 0);
lv_obj_add_flag(obj, LV_OBJ_FLAG_HIDDEN);

#if LV_IME_PINYIN_USE_DEFAULT_DICT
init_pinyin_dict(obj, lv_ime_pinyin_def_dict);
Expand Down Expand Up @@ -1197,4 +1196,4 @@ static void pinyin_k9_cand_page_proc(lv_obj_t * obj, uint16_t dir)

#endif /*LV_IME_PINYIN_USE_K9_MODE*/

#endif /*LV_USE_IME_PINYIN*/
#endif /*LV_USE_IME_PINYIN*/

0 comments on commit 35d845b

Please sign in to comment.