From c7c1c6a62c21054d50a6074b703c81406bb09a9e Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Mon, 6 Apr 2020 14:27:35 -0500 Subject: [PATCH] Fix rtl padding in task list rows --- app/src/main/java/org/tasks/tasklist/ViewHolder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/tasks/tasklist/ViewHolder.java b/app/src/main/java/org/tasks/tasklist/ViewHolder.java index 4dbcc7c6d..7ac21959d 100644 --- a/app/src/main/java/org/tasks/tasklist/ViewHolder.java +++ b/app/src/main/java/org/tasks/tasklist/ViewHolder.java @@ -137,13 +137,13 @@ public class ViewHolder extends RecyclerView.ViewHolder { private void setTopPadding(int padding, View... views) { for (View v : views) { - v.setPadding(v.getPaddingLeft(), padding, v.getPaddingRight(), v.getPaddingBottom()); + v.setPaddingRelative(v.getPaddingStart(), padding, v.getPaddingEnd(), v.getPaddingBottom()); } } private void setBottomPadding(int padding, View... views) { for (View v : views) { - v.setPadding(v.getPaddingLeft(), v.getPaddingTop(), v.getPaddingRight(), padding); + v.setPaddingRelative(v.getPaddingStart(), v.getPaddingTop(), v.getPaddingEnd(), padding); } }