Merge "[a11y] update recommendation content discription for new layout" into tm-qpr-dev am: a8825e8685

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21158910

Change-Id: I743a401d9276ae5d4704ef6cdf35c5fde3744fc8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Michael Mikhail
2023-02-01 00:53:00 +00:00
committed by Automerger Merge Worker
2 changed files with 12 additions and 5 deletions

View File

@@ -47,7 +47,8 @@
android:singleLine="true"
android:textSize="12sp"
android:gravity="top"
android:layout_gravity="bottom"/>
android:layout_gravity="bottom"
android:importantForAccessibility="no"/>
<!-- Album name -->
<TextView
@@ -61,7 +62,8 @@
android:singleLine="true"
android:textSize="11sp"
android:gravity="center_vertical"
android:layout_gravity="bottom"/>
android:layout_gravity="bottom"
android:importantForAccessibility="no"/>
<!-- Seek Bar -->
<SeekBar

View File

@@ -734,9 +734,14 @@ public class MediaControlPanel {
contentDescription =
mRecommendationViewHolder.getGutsViewHolder().getGutsText().getText();
} else if (data != null) {
contentDescription = mContext.getString(
R.string.controls_media_smartspace_rec_description,
data.getAppName(mContext));
if (mFeatureFlags.isEnabled(Flags.MEDIA_RECOMMENDATION_CARD_UPDATE)) {
contentDescription = mContext.getString(
R.string.controls_media_smartspace_rec_header);
} else {
contentDescription = mContext.getString(
R.string.controls_media_smartspace_rec_description,
data.getAppName(mContext));
}
} else {
contentDescription = null;
}