fixed uninitialized variable last_entry in FlatNaviContext 52/259152/2 accepted/tizen/unified/20210616.132434 submit/tizen/20210616.013832
authorLukasz Oleksak <l.oleksak@samsung.com>
Tue, 1 Jun 2021 13:59:54 +0000 (15:59 +0200)
committerLukasz Oleksak <l.oleksak@samsung.com>
Wed, 2 Jun 2021 07:04:43 +0000 (07:04 +0000)
This patch fixes undetermined behaviour of screen-reader in the situation
when highlight is given by TAP gesture to the last element in UI navigation order
and subsequent gesture is ONE_FINGER_FLICK requesting for next element.

Previous implementation guaranteed proper initialization of the variable
only in situation when the last element was reached by ONE_FINGER_FLICK
gesture.

Change-Id: I1902790119eb7f8bd542ea68ac25a9e2cdd5c3aa

src/flat_navi.c

index d511822115f111ebfc124f5c13dfda0fec7e2318..281f6073ed8a3bf228bf62e7333f7ae357b95ec9 100644 (file)
@@ -397,6 +397,7 @@ int flat_navi_context_setup(FlatNaviContext *ctx, AtspiAccessible *root)
 
        g_object_unref(ctx->current);
        ctx->current = _first(ctx);
+       ctx->last_entry = LAST_ENTRY_NONE;
 
        DEBUG("END");
        return 0;