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

Commit 051315fa authored by guanxiongliu's avatar guanxiongliu
Browse files

Adding speakable description for checkbox

Bug:27299806
Change-Id: Ic7eed4711648b23ffba4a2f6915dab320ef3fe5c
parent 4b5b8081
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -594,6 +594,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));