diff options
author | Jason Monk <jmonk@google.com> | 2014-04-24 10:13:05 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2014-04-24 10:13:05 -0400 |
commit | ed05f09aa1f83fc7ed02c8c40fa473a7f1a3a1e0 (patch) | |
tree | b2dd0c51fb27e2f354a5fd63115c4d036c28af44 /src/com/android/launcher3/AppsCustomizeTabHost.java | |
parent | f2a791a798ce24d81f3410c83873087690db4ffd (diff) | |
download | android_packages_apps_Trebuchet-ed05f09aa1f83fc7ed02c8c40fa473a7f1a3a1e0.tar.gz android_packages_apps_Trebuchet-ed05f09aa1f83fc7ed02c8c40fa473a7f1a3a1e0.tar.bz2 android_packages_apps_Trebuchet-ed05f09aa1f83fc7ed02c8c40fa473a7f1a3a1e0.zip |
Fix accessibility announce on apps page
Stops the workspace from announcing incorrectly while the apps
page is open, also makes the apps announce which page on opening.
Bug: 13006306
Change-Id: I723011fc55c24b66604a24b16c17bac4f5653f84
Diffstat (limited to 'src/com/android/launcher3/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/android/launcher3/AppsCustomizeTabHost.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher3/AppsCustomizeTabHost.java b/src/com/android/launcher3/AppsCustomizeTabHost.java index bb7f045ce..c6455c2fe 100644 --- a/src/com/android/launcher3/AppsCustomizeTabHost.java +++ b/src/com/android/launcher3/AppsCustomizeTabHost.java @@ -29,6 +29,7 @@ import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; +import android.view.accessibility.AccessibilityManager; import android.widget.FrameLayout; import android.widget.LinearLayout; import android.widget.TabHost; @@ -430,6 +431,14 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona // prevent slowing down the animation) mAppsCustomizePane.loadAssociatedPages(mAppsCustomizePane.getCurrentPage()); + // Opening apps, need to announce what page we are on. + AccessibilityManager am = (AccessibilityManager) + getContext().getSystemService(Context.ACCESSIBILITY_SERVICE); + if (am.isEnabled()) { + // Notify the user when the page changes + announceForAccessibility(mAppsCustomizePane.getCurrentPageDescription()); + } + // Going from Workspace -> All Apps // NOTE: We should do this at the end since we check visibility state in some of the // cling initialization/dismiss code above. |