Merge "Fix accessibility announce on apps page" into ub-now-nova

This commit is contained in:
Jason Monk authored and Android (Google) Code Review committed 2014-04-24 16:33:07 +00:00
commit 031d0ff4ad
2 files changed
+17

No files matched your search

+8
View File
@@ -1466,6 +1466,14 @@ public class Workspace extends SmoothPagedView
mWallpaperOffset.syncWithScroll();
}
@Override
public void announceForAccessibility(CharSequence text) {
// Don't announce if apps is on top of us.
if (!mLauncher.isAllAppsVisible()) {
super.announceForAccessibility(text);
}
}
void showOutlines() {
if (!isSmall() && !mIsSwitchingState) {
if (mChildrenOutlineFadeOutAnimation != null) mChildrenOutlineFadeOutAnimation.cancel();