From: Priya Kohli Date: Thu, 26 Sep 2019 11:02:59 +0000 (+0530) Subject: [TBT][Operation Pick][TFDF-4099, Fixed the issue to select multiple items] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83b79e8e029ab80304ac88fecacbd9d46e97e79c;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Operation Pick][TFDF-4099, Fixed the issue to select multiple items] Change-Id: I9fe1c870243ba8e3fd11b208384e69f9230515fc Signed-off-by: Priya Kohli --- diff --git a/coretbt_uiapp/src/coretbt_uiapp.c b/coretbt_uiapp/src/coretbt_uiapp.c index 0492cc5..2d6b98f 100644 --- a/coretbt_uiapp/src/coretbt_uiapp.c +++ b/coretbt_uiapp/src/coretbt_uiapp.c @@ -273,7 +273,8 @@ static void on_return_button_clicked(void *data, Evas_Object *obj EINA_UNUSED, v int nStatus; appdata_s *ad=data; - + // lets create dummy data + char *pick_data[]={"Artcell", "Dream Theater", "Pink Floyd","Iron Maiden","SOAD","Prisoners","Poets Of The Fall","Endless River","No room for looser!", "Dummy(Not to be selected)"}; if(was_requested) { @@ -324,22 +325,23 @@ static void on_return_button_clicked(void *data, Evas_Object *obj EINA_UNUSED, v char *values[selectionCount]; int now=0; - + int index; EINA_LIST_FOREACH(items, l, list_it) { char *value = NULL; #ifdef USE_GENLIST - value=(char*)elm_object_item_part_text_get(list_it, "elm.text"); + index = elm_genlist_item_index_get(list_it); + DBG("index = %d", index); + values[now++]=pick_data[index-1]; #else value=(char*)elm_object_item_text_get(list_it); -#endif if(value) { values[now++]=value; } - +#endif } - nStatus = app_control_add_extra_data_array ( reply, "values", (const char**)values,selectionCount); + nStatus = app_control_add_extra_data_array ( reply, "values", (const char**)values,now); DBG("app_control_add_extra_data_array=%s",get_app_control_error(nStatus)); @@ -357,7 +359,6 @@ static void on_return_button_clicked(void *data, Evas_Object *obj EINA_UNUSED, v } - /** * @function create_base_gui * @since_tizen 2.3 @@ -405,9 +406,9 @@ static void create_base_gui(appdata_s *ad) // lets create dummy data :D - char *data[]={"Artcell", "Dream Theater", "Pink Floyd","Iron Maiden","SOAD","Prisoners","Poets Of The Fall","Endless River","No room for looser!"}; + char *data[]={"Artcell", "Dream Theater", "Pink Floyd","Iron Maiden","SOAD","Prisoners","Poets Of The Fall","Endless River","No room for looser!", "Dummy(Not to be selected)"}; ad->items=data; - ad->itemCount=9; + ad->itemCount=10; diff --git a/release/binary-armv7l/org.tizen.coretbt_uiapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.coretbt_uiapp-1.0.0-arm.tpk index 83cbe55..3369c5c 100755 Binary files a/release/binary-armv7l/org.tizen.coretbt_uiapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.coretbt_uiapp-1.0.0-arm.tpk differ diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 07332a3..e2fa758 100755 Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/org.tizen.coretbt_uiapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.coretbt_uiapp-1.0.0-x86.tpk index b786a37..c2161a3 100755 Binary files a/release/binary-x86/org.tizen.coretbt_uiapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.coretbt_uiapp-1.0.0-x86.tpk differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index 920a1ad..4387baa 100755 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ