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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/CompatibilityTextInputLayout.java

Issue 2137443002: Revert of [Payments] Update autofill/payments spacings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@payments_ongoing
Patch Set: Created 4 years, 5 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/widget/CompatibilityTextInputLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/CompatibilityTextInputLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/CompatibilityTextInputLayout.java
index 351692713253366f4607791687026e31f6b27512..10c892fc783d91c501053eff41a2b5cc633bad46 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/CompatibilityTextInputLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/CompatibilityTextInputLayout.java
@@ -9,8 +9,6 @@
import android.support.design.widget.TextInputLayout;
import android.text.TextUtils;
import android.util.AttributeSet;
-import android.view.View;
-import android.widget.EditText;
import javax.annotation.Nullable;
@@ -54,14 +52,4 @@
if (TextUtils.isEmpty(error)) setErrorEnabled(false);
}
- @Override
- public void onFinishInflate() {
- super.onFinishInflate();
-
- if (getChildCount() == 1) {
- // If there is a child to this TextInputLayout, automatically set the hint.
- View child = getChildAt(0);
- if (child instanceof EditText && child.getId() > NO_ID) setLabelFor(child.getId());
- }
- }
}

Powered by Google App Engine
This is Rietveld 408576698