Merge "Fix accessibility description on master clear" into nyc-dev

This commit is contained in:
Jason Monk
2016-05-06 18:33:07 +00:00
committed by Android (Google) Code Review

View File

@@ -177,6 +177,9 @@ public class MasterClear extends OptionsMenuFragment {
} }
private void getContentDescription(View v, StringBuffer description) { private void getContentDescription(View v, StringBuffer description) {
if (v.getVisibility() != View.VISIBLE) {
return;
}
if (v instanceof ViewGroup) { if (v instanceof ViewGroup) {
ViewGroup vGroup = (ViewGroup) v; ViewGroup vGroup = (ViewGroup) v;
for (int i = 0; i < vGroup.getChildCount(); i++) { for (int i = 0; i < vGroup.getChildCount(); i++) {