Backed out 3 changesets (bug 1393274) for android lint failures a=backout

Backed out changeset 52e7fa268a65 (bug 1393274)
Backed out changeset 29e8bf6a34c1 (bug 1393274)
Backed out changeset 03063f77c3f5 (bug 1393274)

MozReview-Commit-ID: 5BOV55zQaFf

--HG--
rename : mobile/android/app/src/main/res/layout/activity_stream_webpage_item_row.xml => mobile/android/app/src/main/res/layout/activity_stream_card_history_item.xml
This commit is contained in:
Wes Kocher 2017-08-31 11:40:09 -07:00
Родитель 717050c969
Коммит cf2f541ad3
2 изменённых файлов: 13 добавлений и 28 удалений

Просмотреть файл

@ -18,7 +18,7 @@
android:layout_height="wrap_content">
<org.mozilla.gecko.activitystream.homepanel.stream.StreamOverridablePageIconLayout
android:id="@+id/page_icon"
android:id="@+id/icon"
android:layout_width="@dimen/favicon_bg"
android:layout_height="@dimen/favicon_bg"
android:layout_marginStart="@dimen/activity_stream_base_margin"
@ -42,11 +42,8 @@
android:paddingBottom="16dp"
android:paddingTop="16dp" />
<!-- In RTL locales, we don't want a large horizontal gap between the domain, page title and source
text so we set textAlignment=viewStart for all of them so that it's to the left in LTR and
right in RTL. -->
<TextView
android:id="@+id/page_domain"
android:id="@+id/page"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/icon_wrapper"
@ -55,20 +52,16 @@
android:layout_toStartOf="@id/menu"
android:paddingLeft="@dimen/activity_stream_base_margin"
android:paddingStart="@dimen/activity_stream_base_margin"
android:paddingRight="0dp"
android:paddingEnd="0dp"
android:paddingTop="@dimen/activity_stream_base_margin"
android:textAlignment="viewStart"
android:textColor="@color/activity_stream_subtitle"
android:textSize="12sp"
tools:text="twitter" />
<!-- See id/page_domain for textAlignment comment. -->
<TextView
android:id="@+id/page_title"
android:id="@+id/card_history_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/page_domain"
android:layout_below="@id/page"
android:layout_toEndOf="@id/icon_wrapper"
android:layout_toLeftOf="@id/menu"
android:layout_toRightOf="@id/icon_wrapper"
@ -77,9 +70,6 @@
android:maxLines="3"
android:paddingLeft="@dimen/activity_stream_base_margin"
android:paddingStart="@dimen/activity_stream_base_margin"
android:paddingRight="0dp"
android:paddingEnd="0dp"
android:textAlignment="viewStart"
android:textColor="#ff000000"
android:textSize="14sp"
android:textStyle="bold"
@ -89,7 +79,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@id/page_title"
android:layout_below="@id/card_history_label"
android:layout_toEndOf="@id/icon_wrapper"
android:layout_toRightOf="@id/icon_wrapper"
android:gravity="center_vertical"
@ -103,22 +93,17 @@
tools:ignore="UseCompoundDrawables">
<ImageView
android:id="@+id/page_source_icon"
android:id="@+id/source_icon"
android:layout_width="12dp"
android:layout_height="12dp"
tools:src="@drawable/ic_as_bookmarked" />
<!-- See id/page_domain for textAlignment comment. -->
<TextView
android:id="@+id/page_source"
android:id="@+id/card_history_source"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="2dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="0dp"
android:layout_marginEnd="0dp"
android:layout_weight="1"
android:textAlignment="viewStart"
android:textColor="@color/activity_stream_subtitle"
android:textSize="12sp"
tools:text="Bookmarked" />

Просмотреть файл

@ -31,7 +31,7 @@ import java.util.UUID;
public class WebpageItemRow extends StreamViewHolder {
private static final String LOGTAG = "GeckoWebpageItemRow";
public static final int LAYOUT_ID = R.layout.activity_stream_webpage_item_row;
public static final int LAYOUT_ID = R.layout.activity_stream_card_history_item;
private static final double SIZE_RATIO = 0.75;
private WebpageRowModel webpageModel;
@ -47,11 +47,11 @@ public class WebpageItemRow extends StreamViewHolder {
public WebpageItemRow(final View itemView, final StreamHighlightItemRowContextMenuListener contextMenuListener) {
super(itemView);
pageTitleView = (TextView) itemView.findViewById(R.id.page_title);
pageIconLayout = (StreamOverridablePageIconLayout) itemView.findViewById(R.id.page_icon);
pageSourceView = (TextView) itemView.findViewById(R.id.page_source);
pageDomainView = (TextView) itemView.findViewById(R.id.page_domain);
pageSourceIconView = (ImageView) itemView.findViewById(R.id.page_source_icon);
pageTitleView = (TextView) itemView.findViewById(R.id.card_history_label);
pageIconLayout = (StreamOverridablePageIconLayout) itemView.findViewById(R.id.icon);
pageSourceView = (TextView) itemView.findViewById(R.id.card_history_source);
pageDomainView = (TextView) itemView.findViewById(R.id.page);
pageSourceIconView = (ImageView) itemView.findViewById(R.id.source_icon);
menuButton = (ImageView) itemView.findViewById(R.id.menu);
menuButton.setImageDrawable(