Skip to content

Commit

Permalink
Bug 966904 - When opening the tabs panel, hide the underlying web con…
Browse files Browse the repository at this point in the history
…tent from TalkBack
  • Loading branch information
Max Li committed Nov 15, 2014
1 parent e460d51 commit c38baa9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mobile/android/base/BrowserApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,15 @@ public void onTabsLayoutChange(int width, int height) {

if (areTabsShown()) {
mTabsPanel.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS);
// Hide the web content from accessibility tools even though it's visible
// so that you can't examine it as long as the tabs are being shown.
if (Versions.feature16Plus) {
mLayerView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
}
} else {
if (Versions.feature16Plus) {
mLayerView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
}
}

mMainLayoutAnimator = new PropertyAnimator(animationLength, sTabsInterpolator);
Expand Down

0 comments on commit c38baa9

Please sign in to comment.