diff options
author | Svetoslav <svetoslavganov@google.com> | 2013-04-25 13:25:06 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2013-04-25 13:25:11 -0700 |
commit | 4293e233dce185e2b8163b23efa8c17ec3266a87 (patch) | |
tree | 3b209803bcb404050c2d888bd5b7101c7801f71f /policy | |
parent | 7c98c196282629fc7a842e67ceca3d9686f3f23a (diff) | |
download | frameworks_base-4293e233dce185e2b8163b23efa8c17ec3266a87.zip frameworks_base-4293e233dce185e2b8163b23efa8c17ec3266a87.tar.gz frameworks_base-4293e233dce185e2b8163b23efa8c17ec3266a87.tar.bz2 |
Lockscreen widgets not always announced.
1. The accessibility events for switching a widget were dispatched
before we update the important for accessibility property. We
were lucky to get events in some cases since the pages in the
pager had alpha grater than zero, i.e. the page was already
set as important for accessibility, due to a running animation.
2. Accessibility focus clear event not fired if we give focus to
another view. The old focus was correctly cleared just the
events were not dispatched.
bug:8599670
Change-Id: Ia2647d77eaa4e10fbaf3a047dc9ea5b728f9c3c3
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java index 1bcee4e..770fafc 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java @@ -169,6 +169,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit KeyguardWidgetFrame newWidgetPage = getWidgetPageAt(newPageIndex); if (newWidgetPage != null) { newWidgetPage.onActive(true); + newWidgetPage.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); newWidgetPage.requestAccessibilityFocus(); } if (mParent != null && AccessibilityManager.getInstance(mContext).isEnabled()) { |