Update ActionBarMenuSubItem.java

This commit is contained in:
Laky64 2022-11-10 15:26:16 +01:00 committed by GitHub
parent 23118a4a6c
commit 5baa79b1a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {