Skip to content

Commit

Permalink
[M91][PwdEditAndroid] Update content description when changing the sh…
Browse files Browse the repository at this point in the history
…ow/hide button

(cherry picked from commit e7943e5)

Bug: 1198108
Change-Id: I3be16f7dbaadfc5a0e72f1ef5c6e230393aebc81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2817794
Reviewed-by: Friedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#871473}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2825688
Cr-Commit-Position: refs/branch-heads/4472@{#56}
Cr-Branched-From: 3d60439-refs/heads/master@{#870763}
  • Loading branch information
Ioana Pandele authored and Chromium LUCI CQ committed Apr 14, 2021
1 parent 5b113ba commit ba74e07
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ void changePasswordVisibility(boolean visible) {
getView().findViewById(R.id.password_visibility_button);
passwordVisibilityButton.setImageResource(
visible ? R.drawable.ic_visibility_off_black : R.drawable.ic_visibility_black);
passwordVisibilityButton.setContentDescription(visible
? getString(R.string.password_entry_viewer_hide_stored_password)
: getString(R.string.password_entry_viewer_view_stored_password));
}

void changeDoneButtonState(boolean hasError) {
Expand Down

0 comments on commit ba74e07

Please sign in to comment.