From af31464cd5ca6f0f8b5da215ddb639774309150a Mon Sep 17 00:00:00 2001 From: Anderson Mesquita Date: Sat, 4 May 2019 18:14:28 -0400 Subject: [PATCH] Fix padding when count is zero and error happened When we're not able to get the episode count for a podcast and updating the feed fails, the error icon shown in the navbar is too close to the right/end border of the nav drawer. This fixes this padding. Closes: #2982 --- app/src/main/res/layout/nav_feedlistitem.xml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/nav_feedlistitem.xml b/app/src/main/res/layout/nav_feedlistitem.xml index 73d07bc57..816870d1c 100644 --- a/app/src/main/res/layout/nav_feedlistitem.xml +++ b/app/src/main/res/layout/nav_feedlistitem.xml @@ -5,6 +5,10 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="@dimen/listitem_iconwithtext_height" + android:paddingLeft="@dimen/listitem_icon_leftpadding" + android:paddingStart="@dimen/listitem_icon_leftpadding" + android:paddingRight="@dimen/listitem_icon_rightpadding" + android:paddingEnd="@dimen/listitem_icon_rightpadding" tools:background="@android:color/darker_gray" android:foreground="?attr/selectableItemBackground"> @@ -21,8 +25,6 @@ android:scaleType="centerCrop" android:layout_marginTop="4dp" android:layout_marginBottom="4dp" - android:layout_marginLeft="@dimen/listitem_icon_leftpadding" - android:layout_marginStart="@dimen/listitem_icon_leftpadding" tools:src="@drawable/ic_stat_antenna_default" tools:background="@android:color/holo_green_dark"/> @@ -32,8 +34,6 @@ android:layout_height="wrap_content" android:layout_marginLeft="@dimen/list_vertical_padding" android:layout_marginStart="@dimen/list_vertical_padding" - android:layout_marginRight="@dimen/listitem_icon_rightpadding" - android:layout_marginEnd="@dimen/listitem_icon_rightpadding" android:lines="1" android:textColor="?android:attr/textColorTertiary" android:textSize="@dimen/text_size_navdrawer" @@ -80,5 +80,4 @@ tools:text="Navigation feed item title" tools:background="@android:color/holo_green_dark"/> -