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

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

Issue 14801009: [rAc Android dialog] Logo, banner, text, alignment fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 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/AutofillDialogContentView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java
index 1e5772bafb44fa7f2b3170f274a7bb21dfb12280..02b9f923d96b6b980480210e5b45f93826d595e8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java
@@ -233,6 +233,21 @@ public class AutofillDialogContentView extends LinearLayout {
}
/**
+ * Updates the legal documents footer.
+ * @param legalDocumentsText The text to show, or a null/empty string.
+ */
+ public void updateLegalDocumentsText(String legalDocumentsText) {
+ TextView legalView = (TextView) findViewById(R.id.terms_info);
+ if (TextUtils.isEmpty(legalDocumentsText)) {
+ legalView.setVisibility(View.GONE);
+ return;
+ }
+
+ legalView.setText(legalDocumentsText);
+ legalView.setVisibility(View.VISIBLE);
+ }
+
+ /**
* Updates a dropdown with the given items and adds default items to the end.
* @param section The dialog section.
* @param items The {@link AutofillDialogMenuItem} array to update the dropdown with.

Powered by Google App Engine
This is Rietveld 408576698