Fix talkback label "ACCOUNTS FOR OWNER" is not matching problem
- Root cause: the content description is different with title. - Solution: set the description same as title. Fixes: 181192849 Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.accounts Change-Id: Ic566d061e78eaf427add6aac4701142a6180e557
This commit is contained in:
@@ -325,10 +325,10 @@ public class AccountPreferenceController extends AbstractPreferenceController
|
|||||||
mFragment.getPreferenceManager().getContext());
|
mFragment.getPreferenceManager().getContext());
|
||||||
preferenceGroup.setOrder(mAccountProfileOrder++);
|
preferenceGroup.setOrder(mAccountProfileOrder++);
|
||||||
if (isSingleProfile()) {
|
if (isSingleProfile()) {
|
||||||
preferenceGroup.setTitle(context.getString(R.string.account_for_section_header,
|
final String title = context.getString(R.string.account_for_section_header,
|
||||||
BidiFormatter.getInstance().unicodeWrap(userInfo.name)));
|
BidiFormatter.getInstance().unicodeWrap(userInfo.name));
|
||||||
preferenceGroup.setContentDescription(
|
preferenceGroup.setTitle(title);
|
||||||
mContext.getString(R.string.account_settings));
|
preferenceGroup.setContentDescription(title);
|
||||||
} else if (userInfo.isManagedProfile()) {
|
} else if (userInfo.isManagedProfile()) {
|
||||||
if (mType == ProfileSelectFragment.ProfileType.ALL) {
|
if (mType == ProfileSelectFragment.ProfileType.ALL) {
|
||||||
preferenceGroup.setTitle(R.string.category_work);
|
preferenceGroup.setTitle(R.string.category_work);
|
||||||
|
Reference in New Issue
Block a user