[TBT][Operation Pick][TFDF-4099, Fixed the issue to select multiple items] 03/214803/2
authorPriya Kohli <priya.kohli@samsung.com>
Thu, 26 Sep 2019 11:02:59 +0000 (16:32 +0530)
committershobhit verma <shobhit.v@samsung.com>
Thu, 26 Sep 2019 11:19:42 +0000 (11:19 +0000)
Change-Id: I9fe1c870243ba8e3fd11b208384e69f9230515fc
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
coretbt_uiapp/src/coretbt_uiapp.c
release/binary-armv7l/org.tizen.coretbt_uiapp-1.0.0-arm.tpk
release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk
release/binary-x86/org.tizen.coretbt_uiapp-1.0.0-x86.tpk
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk

index 0492cc59e59044569051a1d0c58acca806c7ae9c..2d6b98f70d8b29aef855e46aee21e2e61a7b00d4 100644 (file)
@@ -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;
 
 
 
index 83cbe55f49459875d4b622aed189326e51f0f855..3369c5cd953e2ada81b97d2672f2d33ddc61e8ae 100755 (executable)
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
index 07332a36cfd20e6f5efab98445ee44345807c178..e2fa7584e9474ad9805d1dfc193eaaa31523eb04 100755 (executable)
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
index b786a37fd1c36928a97132f7eb5041cbb129cb1e..c2161a3cac3d15aec5ad8bbdc68632394256452b 100755 (executable)
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
index 920a1ad4fb16c969fcc410db39c5f2866aa03070..4387baaa26dbe4df9d12753dd344d20e18ed69c9 100755 (executable)
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