Fixed text of manage notification button for a11y is confusing

Add "manage notification" content description string for a11y.

Fixes: 127877031
Test: manual
Change-Id: I6fc84693a8d72071c2b46412e48a159dfd395dd9
This commit is contained in:
shawnlin
2019-03-12 11:48:10 +08:00
parent fb462f00b4
commit e18d46a634
3 changed files with 5 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
android:layout_height="wrap_content"
android:layout_gravity="start"
android:focusable="true"
android:contentDescription="@string/accessibility_manage_notification"
android:text="@string/manage_notifications_text"
android:textColor="?attr/wallpaperTextColor"
android:textAllCaps="false"/>

View File

@@ -266,6 +266,8 @@
<string name="accessibility_scanning_face">Scanning face</string>
<!-- Click action label for accessibility for the smart reply buttons (not shown on-screen).". [CHAR LIMIT=NONE] -->
<string name="accessibility_send_smart_reply">Send</string>
<!-- Content description of the manage notification button for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_manage_notification">Manage notifications</string>
<!-- Click action label for accessibility for the unlock button. [CHAR LIMIT=NONE] -->
<string name="unlock_label">unlock</string>
<!-- Click action label for accessibility for the phone button. [CHAR LIMIT=NONE] -->

View File

@@ -79,6 +79,8 @@ public class FooterView extends StackScrollerDecorView {
mDismissButton.setContentDescription(
mContext.getString(R.string.accessibility_clear_all));
mManageButton.setText(R.string.manage_notifications_text);
mManageButton.setContentDescription(
mContext.getString(R.string.accessibility_manage_notification));
}
public boolean isButtonVisible() {