app_tracker: use root if there is not default label object 25/270025/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 24 Jan 2022 09:09:51 +0000 (18:09 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 24 Jan 2022 09:24:52 +0000 (18:24 +0900)
The at-spi2-atk does not provide 'GetDefaultLabelInfo'.
The Flutter toolkit is working on the at-spi2-atk.

If Flutter window is activated, screen-reader is not working
with the Flutter window for the '1 finger swipe'.
The screen-reader is working with deactivated window.

It is because that 'on_timeout_rebuild_navigation_context'
does not call 'view_content_changed' which calls
'flat_navi_context_setup' changing context's root and current
So the context root is not changed.

The patch is calling 'view_content_changed' using
the Flutter windowk before the at-spi2-atk provides
'GetDefaultLabelInfo' interface.

Change-Id: Icf3a72a9203345857f1682706bfbc6320d0ca7b6

src/app_tracker.c

index ef4c055ff66a9fa2703dc98bec50ed653a717457..489f72f638bf2cc930132d77c2c7f3b3c63aff86 100644 (file)
@@ -83,6 +83,9 @@ static gboolean _on_timeout_rebuild_navigation_context(gpointer user_data)
 
                if (!dli) {
                        ERROR("Default label info is NULL!");
+                       //TODO: this line is for the Flutter which is using at-spi2-atk
+                       //our at-spi2-atk does not provide 'GetDefaultLabelInfo' interface yet
+                       atd->view_content_changed_ecd->func(atd->root, ATSPI_ROLE_WINDOW, atd->view_content_changed_ecd->user_data, EINA_TRUE);
                        goto end;
                }