Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1022)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java

Issue 1078273002: Remove unnecesary ApiCompatibilityUtils calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: newt's comments Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
/**

Powered by Google App Engine
This is Rietveld 408576698