Merge "Fix Settings Condition expand button a11y label" into nyc-dev am: 51b1e05 am: 03fb024

am: c8ab34c

* commit 'c8ab34c5e44608ecab00da342916933b50d47eb7':
  Fix Settings Condition expand button a11y label

Change-Id: Idf60d662db506c3c7089a413fff7ea29b7c0685c
This commit is contained in:
Clara Bayarri
2016-04-27 19:36:11 +00:00
committed by android-build-merger
2 changed files with 8 additions and 0 deletions

View File

@@ -71,6 +71,8 @@ public class ConditionAdapterUtils {
ImageView expand = (ImageView) view.itemView.findViewById(R.id.expand_indicator);
expand.setTag(condition);
expand.setImageResource(isExpanded ? R.drawable.ic_expand_less : R.drawable.ic_expand_more);
expand.setContentDescription(expand.getContext().getString(isExpanded
? R.string.condition_expand_hide : R.string.condition_expand_show));
expand.setOnClickListener(onExpandListener);
View detailGroup = view.itemView.findViewById(R.id.detail_group);