Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5e82005 authored by Jacky Kao's avatar Jacky Kao
Browse files

Adding new A11y window type to A11y services

Two window types, INPUT_METHOD and INPUT_METHOD_DIALOG are group
into a single A11y window type, TYPE_INPUT_METHOD, at A11y
framework such that A11y services could not do correct behavior
when the input method dialog shows. Splitting out the
INPUT_METHOD_DIALOG and mapping it to TYPE_APPLICATION to fix
this issue.

Bug: 154315649
Test: a11y CTS & unit tests
Change-Id: I263398b20e75f48afebbe8d002994a00a110abdc
parent b3b3d4ec
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -707,12 +707,12 @@ public class AccessibilityWindowManager {
                case WindowManager.LayoutParams.TYPE_PHONE:
                case WindowManager.LayoutParams.TYPE_PRIORITY_PHONE:
                case WindowManager.LayoutParams.TYPE_TOAST:
                case WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG: {
                case WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG:
                case WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG: {
                    return AccessibilityWindowInfo.TYPE_APPLICATION;
                }

                case WindowManager.LayoutParams.TYPE_INPUT_METHOD:
                case WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG: {
                case WindowManager.LayoutParams.TYPE_INPUT_METHOD: {
                    return AccessibilityWindowInfo.TYPE_INPUT_METHOD;
                }