Fix accessibility description on master clear

Only include visible views

Change-Id: I271ae87c788e270b15e7ca8758059771cde16d33
Fixes: 28316423
This commit is contained in:
Jason Monk
2016-05-06 14:28:09 -04:00
parent 7f1b86e5df
commit fda774104a

View File

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