From 1c88c1e8d4d92db2db8267d7ffcba81654c29520 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 5 Jun 2020 10:54:13 +0200 Subject: [PATCH] lv_dropdown: fix missing event when used with encoder --- CHANGELOG.md | 7 ++++--- src/lv_widgets/lv_dropdown.c | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8154aa4a4..7f3c7de7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,18 @@ # Changelog -## v7.0.2 (under developement) +## v7.0.2 (under development) *Available in the `master` branch* -- `lv_textarea` fix wrong cursor positon when clicked after the last character +- `lv_textarea` fix wrong cursor position when clicked after the last character - Change all text related indices from 16-bit to 32-bit integers throughout whole library. #1545 - Fix gestures - Do not call `set_px_cb` for transparent pixel - Fix list button focus in material theme - Fix crash when the a text area is cleared with the backspace of a keyboard -- Add versionnumber to `lv_conf_template.h` +- Add version number to `lv_conf_template.h` - Add log in true double buffering mode with `set_px_cb` +- `lv_dropdown`: fix missing `LV_EVENT_VALUE_CHANGED` event when used with encoder ## v7.0.1 (01.06.2020) diff --git a/src/lv_widgets/lv_dropdown.c b/src/lv_widgets/lv_dropdown.c index dbcddde5b..7f21a6111 100644 --- a/src/lv_widgets/lv_dropdown.c +++ b/src/lv_widgets/lv_dropdown.c @@ -935,6 +935,9 @@ static lv_res_t lv_dropdown_signal(lv_obj_t * ddlist, lv_signal_t sign, void * p lv_dropdown_close(ddlist); if(ext->sel_opt_id_orig != ext->sel_opt_id) { ext->sel_opt_id_orig = ext->sel_opt_id; + uint32_t id = ext->sel_opt_id; /*Just to use uint32_t in event data*/ + lv_res_t res = lv_event_send(ddlist, LV_EVENT_VALUE_CHANGED, &id); + if(res != LV_RES_OK) return res; lv_obj_invalidate(ddlist); } #if LV_USE_GROUP