Merge "[a11y] update recommendation content discription for new layout" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a8825e8685
@@ -47,7 +47,8 @@
|
|||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:layout_gravity="bottom"/>
|
android:layout_gravity="bottom"
|
||||||
|
android:importantForAccessibility="no"/>
|
||||||
|
|
||||||
<!-- Album name -->
|
<!-- Album name -->
|
||||||
<TextView
|
<TextView
|
||||||
@@ -61,7 +62,8 @@
|
|||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:layout_gravity="bottom"/>
|
android:layout_gravity="bottom"
|
||||||
|
android:importantForAccessibility="no"/>
|
||||||
|
|
||||||
<!-- Seek Bar -->
|
<!-- Seek Bar -->
|
||||||
<SeekBar
|
<SeekBar
|
||||||
|
|||||||
@@ -734,9 +734,14 @@ public class MediaControlPanel {
|
|||||||
contentDescription =
|
contentDescription =
|
||||||
mRecommendationViewHolder.getGutsViewHolder().getGutsText().getText();
|
mRecommendationViewHolder.getGutsViewHolder().getGutsText().getText();
|
||||||
} else if (data != null) {
|
} else if (data != null) {
|
||||||
|
if (mFeatureFlags.isEnabled(Flags.MEDIA_RECOMMENDATION_CARD_UPDATE)) {
|
||||||
|
contentDescription = mContext.getString(
|
||||||
|
R.string.controls_media_smartspace_rec_header);
|
||||||
|
} else {
|
||||||
contentDescription = mContext.getString(
|
contentDescription = mContext.getString(
|
||||||
R.string.controls_media_smartspace_rec_description,
|
R.string.controls_media_smartspace_rec_description,
|
||||||
data.getAppName(mContext));
|
data.getAppName(mContext));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
contentDescription = null;
|
contentDescription = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user