Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java |
index c476dc33f9d8a1a78dfb49b310182eb163194284..a2e269cbec0367431d8c67824a9ab720d52bf135 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java |
@@ -172,8 +172,7 @@ public class CardUnmaskPrompt |
setOverlayVisibility(View.VISIBLE); |
mVerificationProgressBar.setVisibility(View.VISIBLE); |
mVerificationView.setText(R.string.autofill_card_unmask_verification_in_progress); |
- ApiCompatibilityUtils.announceForAccessibility( |
- mVerificationView, mVerificationView.getText()); |
+ mVerificationView.announceForAccessibility(mVerificationView.getText()); |
setInputError(null); |
} |
@@ -266,7 +265,7 @@ public class CardUnmaskPrompt |
}); |
mStoreLocallyTooltipPopup.showAsDropDown(mStoreLocallyCheckbox, |
ViewCompat.getPaddingStart(mStoreLocallyCheckbox), 0); |
- ApiCompatibilityUtils.announceForAccessibility(text, text.getText()); |
+ text.announceForAccessibility(text.getText()); |
} |
private void setInitialFocus() { |
@@ -338,7 +337,7 @@ public class CardUnmaskPrompt |
// A null message is passed in during card verification, which also makes an announcement. |
// Announcing twice in a row may cancel the first announcement. |
if (message != null) { |
- ApiCompatibilityUtils.announceForAccessibility(mErrorMessage, message); |
+ mErrorMessage.announceForAccessibility(message); |
} |
// The rest of this code makes L-specific assumptions about the background being used to |
@@ -364,7 +363,7 @@ public class CardUnmaskPrompt |
private void setNoRetryError(String message) { |
mNoRetryErrorMessage.setText(message); |
mNoRetryErrorMessage.setVisibility(View.VISIBLE); |
- ApiCompatibilityUtils.announceForAccessibility(mNoRetryErrorMessage, message); |
+ mNoRetryErrorMessage.announceForAccessibility(message); |
} |
/** |