OSDN Git Service

Eliminate side effects of a11y window title.
authorPhil Weaver <pweaver@google.com>
Thu, 7 Apr 2016 22:15:41 +0000 (15:15 -0700)
committerPhil Weaver <pweaver@google.com>
Thu, 7 Apr 2016 22:15:41 +0000 (15:15 -0700)
commit9be3c7bdc7d49e9f99861d20fb134799291f20df
tree228bd7f6831398fe15d70db2ec8eb3bd7ed704f9
parentb4cc448946b2edb5802f60a3b1f97efbc8dd7ea0
Eliminate side effects of a11y window title.

ag/898112 added passing the window title to accessibility. To do that,
it also updated copy of the title in WindowManager.LayoutParams. That
was a behavior change, and the change broke cts tests that enforce that
the title in LayoutParams matches its expected format.

This change restores the previous behavior and adds a separate field to
LayoutParams to old an up-to-date title to pass to accessibility.

Bug: 28002185
Change-Id: Ia5b549113600b7c4fcc80b76c3f3a944dddaf483
core/java/android/view/WindowManager.java
core/java/com/android/internal/policy/PhoneWindow.java
services/core/java/com/android/server/wm/AccessibilityController.java