Saho Kobayashi
0d925fbbcd
Fix index corner bug to search the target node
...
In dispatchTouchEvent(), the target node is searched by the for loop.
When the TargetAccessibilityFocus flag is set, dispatchTouchEvent
prioritizes finding the accessibility focused node first.
When the accessibility focused node doesn't handle the event, the second
search is done without the TargetAccessibilityFocus flag.
To prepare for the second search, the index is reset when the
accessibility focused node is found.
Currently the index is reset to childrenCount - 1, which is the same as
the initial index of the for loop, but to search the same range as the
first search, we need to reset it to childrenCount, because the actual
second search starts from the next loop.
Bug: 182434603
Test: atest TouchExplorerTest
Change-Id: Ifc88f7df43bd26e978b24a0d94cfb1ce60c6cb3b
2021-04-06 02:08:19 +00:00
..
2021-04-02 12:15:14 -07:00
2020-12-08 11:01:05 -07:00
2021-03-24 13:46:34 -07:00
2021-03-26 10:48:58 -07:00
2021-03-29 15:54:37 -05:00
2021-03-31 21:06:21 +00:00
2020-12-08 08:36:27 -07:00
2021-03-10 18:00:30 +00:00
2021-03-18 19:28:07 +00:00
2021-04-01 02:00:35 +00:00
2021-03-08 19:49:37 +00:00
2020-11-04 09:45:53 +00:00
2021-02-26 20:37:13 +08:00
2020-09-08 18:46:08 +00:00
2021-03-01 17:41:28 -08:00
2021-03-25 09:37:21 -07:00
2021-03-12 11:03:31 +01:00
2021-03-29 13:21:14 +00:00
2020-10-15 10:48:01 -07:00
2021-02-02 16:33:34 +08:00
2021-01-28 19:12:54 +08:00
2021-02-04 19:37:51 +01:00
2021-03-25 12:41:35 +00:00
2021-03-12 08:08:57 -08:00
2020-11-04 09:45:53 +00:00
2020-06-15 19:26:38 -07:00
2020-07-24 22:03:51 +00:00
2021-02-18 22:07:09 +00:00
2021-03-05 21:42:32 +00:00
2020-08-03 11:36:54 +08:00
2020-05-06 09:38:39 -04:00
2020-11-26 15:31:57 +00:00
2021-03-29 21:52:07 -04:00
2021-03-01 22:23:22 +01:00
2020-07-08 23:06:14 +00:00
2020-05-20 17:34:17 -07:00
2021-03-01 23:41:22 +08:00
2021-03-30 03:10:21 +00:00
2020-12-12 02:18:47 +00:00
2020-11-04 09:45:53 +00:00
2021-02-22 16:06:35 -08:00
2021-03-22 07:59:18 +00:00
2021-03-24 12:36:46 +00:00
2021-03-24 12:36:46 +00:00
2020-11-04 09:45:53 +00:00
2020-11-04 09:45:53 +00:00
2020-12-12 02:18:47 +00:00
2020-06-22 16:55:54 +02:00
2021-03-22 12:21:48 +08:00
2020-09-29 15:05:18 +02:00
2021-03-16 23:33:31 +08:00
2021-03-22 18:52:21 +08:00
2021-01-29 17:28:15 +00:00
2021-02-24 23:33:16 +08:00
2021-03-22 18:52:21 +08:00
2021-03-16 23:33:31 +08:00
2021-03-16 23:33:31 +08:00
2021-02-25 04:57:26 +00:00
2021-03-25 12:07:20 -07:00
2020-12-13 15:28:56 +00:00
2021-02-04 18:38:44 +01:00
2021-03-16 02:07:53 +00:00
2021-03-16 02:07:53 +00:00
2021-03-16 02:07:53 +00:00
2021-03-16 02:07:53 +00:00
2021-03-29 15:54:37 -05:00
2021-02-17 08:24:54 -08:00
2021-03-12 10:51:09 -08:00
2020-10-13 02:25:52 +00:00
2021-01-08 11:43:36 +01:00
2020-11-04 09:45:53 +00:00
2020-12-14 18:35:45 -08:00
2021-03-24 12:17:02 -07:00
2021-03-03 16:04:45 -05:00
2021-03-22 11:13:08 -04:00
2020-12-14 22:04:57 -08:00
2021-03-31 18:50:52 +00:00
2021-01-19 23:33:21 +08:00
2020-11-04 09:45:53 +00:00
2020-10-14 19:02:17 +00:00
2020-11-04 09:45:53 +00:00
2021-02-26 20:37:13 +08:00
2021-03-31 09:59:03 -07:00
2021-03-25 18:26:02 +08:00
2021-02-02 16:33:34 +08:00
2021-03-09 13:01:47 +08:00
2021-02-25 23:02:17 +00:00
2021-03-16 02:07:53 +00:00
2021-02-25 23:02:17 +00:00
2021-03-16 02:07:53 +00:00
2021-02-25 23:02:17 +00:00
2021-02-25 23:02:17 +00:00
2021-02-25 23:02:17 +00:00
2021-03-24 14:24:55 +01:00
2021-03-24 21:34:04 +01:00
2021-03-31 14:30:23 +00:00
2021-03-05 12:20:18 -08:00
2021-03-31 14:29:03 -04:00
2021-03-23 10:42:15 -07:00
2021-02-09 14:54:42 -08:00
2021-03-24 19:04:34 +00:00
2021-02-08 21:34:31 +00:00
2020-11-20 20:11:58 +08:00
2020-11-04 09:45:53 +00:00
2020-12-01 15:07:50 -10:00
2020-11-04 09:45:53 +00:00
2020-05-01 18:25:32 +00:00
2020-11-04 12:40:58 -08:00
2020-11-04 12:40:58 -08:00
2021-03-31 21:06:21 +00:00
2021-03-02 14:13:48 +08:00
2020-11-04 09:45:53 +00:00
2021-03-04 03:11:19 +00:00
2021-04-06 02:08:19 +00:00
2020-11-04 09:45:53 +00:00
2020-08-19 11:13:22 -07:00
2021-03-30 04:10:05 +00:00
2021-04-02 02:32:06 +00:00
2020-10-21 20:20:21 +08:00
2021-03-26 10:48:58 -07:00
2020-11-04 09:45:53 +00:00
2021-03-31 14:33:58 +00:00
2020-11-04 09:45:53 +00:00
2020-11-04 09:45:53 +00:00
2021-02-02 16:33:34 +08:00
2021-01-28 15:19:14 +08:00
2021-01-28 15:19:14 +08:00
2021-01-28 15:19:14 +08:00
2021-01-29 17:28:15 +00:00
2021-03-10 21:11:34 +00:00
2021-03-29 17:12:05 +02:00
2021-03-16 10:05:52 -07:00
2021-03-24 11:26:50 +08:00
2021-01-20 20:08:37 -05:00
2021-03-24 06:36:30 +00:00