Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13d38cc9 authored by Sean Liu's avatar Sean Liu Committed by Android (Google) Code Review
Browse files

Merge "Adding speakable description for checkbox" into nyc-dev

parents f28e8e6e 051315fa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -595,6 +595,10 @@ public class QuickContactActivity extends ContactsActivity
                new int[] { -android.R.attr.state_checked }
        };
        final int[] colors = new int[] { mColorFilterColor, mColorFilterColor };
        if (suggestion != null && suggestion.name != null) {
            checkbox.setContentDescription(suggestion.name + " " +
                    getResources().getString(R.string.contact_from_account_name, accountName));
        }
        checkbox.setButtonTintList(new ColorStateList(stateSet, colors));
        checkbox.setChecked(mSuggestionsShouldAutoSelected ||
                mSelectedAggregationIds.contains(suggestion.contactId));