Add a content description to the app info button.

This resolves an issue where Talkback would call the
app info button "unlabelled."

Change-Id: I59d8639584c48d8eeb7640bdac3d18bc7667009f
Fixes: 35338852
Test: Settings Robotest
This commit is contained in:
Daniel Nishi
2017-02-28 11:04:05 -08:00
parent a24d7d4ccd
commit 93e08ebf80
2 changed files with 22 additions and 0 deletions

View File

@@ -267,6 +267,8 @@ public class AppHeaderController {
|| !AppHeader.includeAppInfo(mFragment)) {
button.setVisibility(View.GONE);
} else {
button.setContentDescription(
mContext.getString(R.string.application_info_label));
button.setImageResource(com.android.settings.R.drawable.ic_info);
button.setOnClickListener(v -> AppInfoBase.startAppInfoFragment(
InstalledAppDetails.class, R.string.application_info_label,