Shut down recent app on screen reader double tap 80/121580/1 submit/tizen/20170328.133413 submit/tizen/20170330.115154 submit/tizen/20170405.143047 submit/tizen/20170406.135709 submit/tizen/20170607.055817 submit/tizen/20170718.074119 tizen_4.0.m1_release
authorKamil Lipiszko <k.lipiszko@samsung.com>
Fri, 9 Dec 2016 13:22:16 +0000 (14:22 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 28 Mar 2017 09:07:10 +0000 (11:07 +0200)
Change-Id: I63d8403124c8231984d3bdc04ba00d91ad6bcea3

res/edje/layout.edc
src/main.c

index 0a1aa6c..94f49ee 100644 (file)
@@ -64,8 +64,6 @@ collections {
                                description {
                                        state: "default" 0.0;
                                        color: 255 255 255 255;
-                                       rel1 { relative: 0.15 0.4; to: "bg"; }
-                                       rel2 { relative: 0.85 0.5; to: "bg"; }
                                        text {
                                                text: " ";
                                                style: "no_item_style";
@@ -83,8 +81,8 @@ collections {
                programs {
                        program {
                                signal: "mouse,clicked,*";
-                               source: "scroller";
-                               action: SIGNAL_EMIT "scroller,clicked" "scroller";
+                               source: "no,apps,txt";
+                               action: SIGNAL_EMIT "no,apps,clicked" "no,apps,txt";
                        }
                        program {
                                signal: "no,apps,txt,show";
index e87af72..e32e01b 100644 (file)
@@ -94,7 +94,7 @@ static task_mgr_error_e _create_layout(Evas_Object *parent)
        evas_object_resize(layout, main_info.root_w, main_info.root_h);
        evas_object_show(layout);
 
-       elm_object_signal_callback_add(layout, "scroller,clicked", "scroller", _bg_clicked_cb, NULL);
+       elm_object_signal_callback_add(layout, "no,apps,clicked", "no,apps,txt", _bg_clicked_cb, NULL);
 
        main_info.layout = layout;
 
@@ -122,6 +122,19 @@ static void _destroy_layout(void)
 
 
 
+static Eina_Bool _access_action_cb(void *data, Evas_Object *obj, Elm_Access_Action_Info *action_info)
+{
+       if (action_info->action_type == ELM_ACCESS_ACTION_ACTIVATE) {
+               if (!main_info.scroller || scroller_count(main_info.scroller) > 1)
+                       return EINA_FALSE;
+
+               ui_app_exit();
+       }
+
+       return EINA_TRUE;
+}
+
+
 static Eina_Bool _list_timer_cb(void *data)
 {
        _D("");
@@ -141,10 +154,14 @@ static Eina_Bool _list_timer_cb(void *data)
 
        elm_object_part_text_set(main_info.layout, "no,apps,txt", _("IDS_TASKMGR_NPBODY_NO_RECENTLY_USED_APPS"));
 
-       Evas_Object *label = (Evas_Object *)edje_object_part_object_get(elm_layout_edje_get(main_info.layout), "no,apps,txt");
+       Evas_Object *label = (Evas_Object *)edje_object_part_object_get(
+                       elm_layout_edje_get(main_info.layout), "no,apps,txt");
        Evas_Object *atspi_label = elm_access_object_register(label, main_info.layout);
+       elm_access_action_cb_set(atspi_label, ELM_ACCESS_ACTION_ACTIVATE, _access_action_cb, NULL);
        elm_atspi_accessible_role_set(atspi_label, ELM_ATSPI_ROLE_LABEL);
        elm_atspi_accessible_name_set(atspi_label, _("IDS_TASKMGR_NPBODY_NO_RECENTLY_USED_APPS"));
+       elm_atspi_accessible_reading_info_type_set(atspi_label,
+                               ELM_ACCESSIBLE_READING_INFO_TYPE_NAME);
 
        main_info.pkg_list = list_pkg_list_get();
        if (!main_info.pkg_list) {