From 0fd2894a8bdb0fb4cb949d1afe2170eb99d52d5e Mon Sep 17 00:00:00 2001 From: sk Date: Thu, 26 Jan 2023 00:58:21 +0100 Subject: [PATCH] update comment --- .../main/java/org/joinmastodon/android/ui/utils/UiUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java index 276366577..b059248c2 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java @@ -1145,13 +1145,13 @@ public class UiUtils{ // problem: as per overflow action button defaults, the padding on left and right is unequal // so (however the native overflow button manages this), the ripple background is off-center - // workaround: set both paddings to the smaller one… + // workaround: set both paddings to the smaller, left one… int end = image.getPaddingEnd(); int start = image.getPaddingStart(); int paddingDiff = end - start; // what's missing to the long padding image.setPaddingRelative(start, image.getPaddingTop(), start, image.getPaddingBottom()); - // …and make up for the additional padding using a negative margin in a container + // …and add the missing padding to the right on the container container.setPaddingRelative(0, 0, paddingDiff, 0); container.setBackground(null); container.setClickable(true);