From 5baa79b1a6f44bc81a7cbfc36d2efa8f3ea708f2 Mon Sep 17 00:00:00 2001 From: Laky64 <35636667+Laky-64@users.noreply.github.com> Date: Thu, 10 Nov 2022 15:26:16 +0100 Subject: [PATCH] Update ActionBarMenuSubItem.java --- .../java/org/telegram/ui/ActionBar/ActionBarMenuSubItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/ActionBarMenuSubItem.java b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/ActionBarMenuSubItem.java index 778b0ef77..89e5f0973 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/ActionBarMenuSubItem.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/ActionBarMenuSubItem.java @@ -133,6 +133,8 @@ public class ActionBarMenuSubItem extends FrameLayout { } setPadding(AndroidUtilities.dp(LocaleController.isRTL ? 8 : 18), 0, AndroidUtilities.dp(LocaleController.isRTL ? 18 : 8), 0); rightIcon.setImageResource(icon); + int iconWidth = AndroidUtilities.dp(24 + 5); + ((FrameLayout.LayoutParams) textView.getLayoutParams()).setMargins(LocaleController.isRTL ? iconWidth : 0, 0, LocaleController.isRTL ? 0:iconWidth, 0); } public void setTextAndIcon(CharSequence text, int icon) {