From: Yeongjong Lee Date: Thu, 14 May 2020 04:19:00 +0000 (+0900) Subject: elementary_tizen/genlist: unfocus old content before it is deleted X-Git-Tag: accepted/tizen/unified/20200604.164556~159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e963992785f802b4d5dfd97208c4db064165b46d;p=platform%2Fupstream%2Fefl.git elementary_tizen/genlist: unfocus old content before it is deleted This patch prevent unexpected focusing by focused_revert on the old content deletion. because item content focus should be handled by genlist. @tizen_fix Change-Id: I5a8cf1e75a8cd3107c24a5822fcd22a9e6b326f4 --- diff --git a/src/lib/elementary_tizen/elm_genlist.c b/src/lib/elementary_tizen/elm_genlist.c index 03b69fa..92014e6 100644 --- a/src/lib/elementary_tizen/elm_genlist.c +++ b/src/lib/elementary_tizen/elm_genlist.c @@ -1096,6 +1096,9 @@ _item_content_realize(Elm_Gen_Item *it, out: if (old && content != old) { + // Unfocus old content to avoid focused_revert on evas_object_del. + // content focus will be handled above. + elm_object_focus_set(old, EINA_FALSE); *contents = eina_list_remove(*contents, old); _item_content_free(old); }