elementary_tizen/genlist: unfocus old content before it is deleted
authorYeongjong Lee <yj34.lee@samsung.com>
Thu, 14 May 2020 04:19:00 +0000 (13:19 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 14 May 2020 22:15:19 +0000 (07:15 +0900)
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

src/lib/elementary_tizen/elm_genlist.c

index 03b69fa..92014e6 100644 (file)
@@ -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);
           }