From a865d91a593a86e09c2067011d44fd68cc1dd8c0 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 18 Mar 2020 16:45:54 -0500 Subject: [PATCH] Fix lint errors --- app/src/main/java/com/todoroo/astrid/api/Filter.java | 2 +- app/src/main/res/layout/row_place.xml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/todoroo/astrid/api/Filter.java b/app/src/main/java/com/todoroo/astrid/api/Filter.java index b9a054f52..77a68acf9 100644 --- a/app/src/main/java/com/todoroo/astrid/api/Filter.java +++ b/app/src/main/java/com/todoroo/astrid/api/Filter.java @@ -198,7 +198,7 @@ public class Filter extends FilterListItem { } public boolean hasBeginningMenu() { - return getBeginningMenu() > 0; + return getBeginningMenu() != 0; } public @MenuRes int getBeginningMenu() { diff --git a/app/src/main/res/layout/row_place.xml b/app/src/main/res/layout/row_place.xml index ada477079..f9f0e7829 100644 --- a/app/src/main/res/layout/row_place.xml +++ b/app/src/main/res/layout/row_place.xml @@ -40,9 +40,9 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toEndOf="@id/place_icon" - android:layout_toLeftOf="@id/delete" + android:layout_toLeftOf="@id/location_settings" android:layout_toRightOf="@id/place_icon" - android:layout_toStartOf="@id/delete" + android:layout_toStartOf="@id/location_settings" android:paddingStart="0dp" android:paddingEnd="@dimen/keyline_first" android:paddingLeft="0dp" @@ -59,9 +59,9 @@ android:layout_height="wrap_content" android:layout_below="@+id/name" android:layout_toEndOf="@id/place_icon" - android:layout_toLeftOf="@id/delete" + android:layout_toLeftOf="@id/location_settings" android:layout_toRightOf="@id/place_icon" - android:layout_toStartOf="@id/delete" + android:layout_toStartOf="@id/location_settings" android:paddingStart="0dp" android:paddingEnd="@dimen/keyline_first" android:paddingLeft="0dp"