diff options
| -rw-r--r-- | packages/SystemUI/res/layout/media_recommendation_view.xml | 6 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/media/controls/ui/MediaControlPanel.java | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/packages/SystemUI/res/layout/media_recommendation_view.xml b/packages/SystemUI/res/layout/media_recommendation_view.xml index b2aabc77a1dc..c54c4e48d13d 100644 --- a/packages/SystemUI/res/layout/media_recommendation_view.xml +++ b/packages/SystemUI/res/layout/media_recommendation_view.xml @@ -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 diff --git a/packages/SystemUI/src/com/android/systemui/media/controls/ui/MediaControlPanel.java b/packages/SystemUI/src/com/android/systemui/media/controls/ui/MediaControlPanel.java index 901e2308744f..0b4b668a0402 100644 --- a/packages/SystemUI/src/com/android/systemui/media/controls/ui/MediaControlPanel.java +++ b/packages/SystemUI/src/com/android/systemui/media/controls/ui/MediaControlPanel.java @@ -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; } |