Commit 83f0b5a9 authored by aurimas's avatar aurimas Committed by Commit bot

Fix the last lint warnings in chrome/

BUG=266140

Review URL: https://codereview.chromium.org/954063003

Cr-Commit-Position: refs/heads/master@{#318247}
parent fe85385d
...@@ -139,6 +139,6 @@ ...@@ -139,6 +139,6 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="?attr/colorAccent" android:textColor="?attr/colorAccent"
android:textSize="20dp" /> android:textSize="20sp" />
</LinearLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" > android:orientation="vertical" >
<!-- EditText views in FloatLabelLayout require both hint and contentDescription to be set
to work correctly for accessibility because FloatLabelLayout sometimes clear hint. -->
<!--suppress ContentDescription -->
<LinearLayout <LinearLayout
style="@style/PreferenceScreenLayout" style="@style/PreferenceScreenLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -65,6 +68,7 @@ ...@@ -65,6 +68,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingTop="8dp" android:paddingTop="8dp"
android:baselineAligned="false"
android:layout_marginStart="@dimen/pref_autofill_field_horizontal_padding" android:layout_marginStart="@dimen/pref_autofill_field_horizontal_padding"
android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" > android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" >
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
android:orientation="vertical" android:orientation="vertical"
android:focusableInTouchMode="true" > android:focusableInTouchMode="true" >
<!-- EditText views in FloatLabelLayout require both hint and contentDescription to be set
to work correctly for accessibility because FloatLabelLayout sometimes clear hint. -->
<!--suppress ContentDescription -->
<LinearLayout <LinearLayout
style="@style/PreferenceScreenLayout" style="@style/PreferenceScreenLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
android:singleLine="true" android:singleLine="true"
android:visibility="gone" android:visibility="gone"
android:contentDescription="@string/accessibility_js_modal_dialog_prompt" android:contentDescription="@string/accessibility_js_modal_dialog_prompt"
android:inputType="text"
/> />
<CheckBox android:id="@+id/suppress_js_modal_dialogs" <CheckBox android:id="@+id/suppress_js_modal_dialogs"
......
...@@ -74,7 +74,7 @@ public class WebsiteSettingsPopup implements OnClickListener, OnItemSelectedList ...@@ -74,7 +74,7 @@ public class WebsiteSettingsPopup implements OnClickListener, OnItemSelectedList
} }
} }
private static class ElidedUrlTextView extends TextView { public static class ElidedUrlTextView extends TextView {
// The number of lines to display when the URL is truncated. This number // The number of lines to display when the URL is truncated. This number
// should still allow the origin to be displayed. NULL before // should still allow the origin to be displayed. NULL before
// setUrlAfterLayout() is called. // setUrlAfterLayout() is called.
......
...@@ -11,7 +11,7 @@ import android.widget.ImageView; ...@@ -11,7 +11,7 @@ import android.widget.ImageView;
/** /**
* A menu icon that supports the checkable state. * A menu icon that supports the checkable state.
*/ */
class AppMenuItemIcon extends ImageView { public class AppMenuItemIcon extends ImageView {
private static final int[] CHECKED_STATE_SET = new int[] {android.R.attr.state_checked}; private static final int[] CHECKED_STATE_SET = new int[] {android.R.attr.state_checked};
private boolean mCheckedState; private boolean mCheckedState;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment