mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
Update ActionBarMenuSubItem.java
This commit is contained in:
parent
23118a4a6c
commit
5baa79b1a6
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ public class ActionBarMenuSubItem extends FrameLayout {
|
||||||
}
|
}
|
||||||
setPadding(AndroidUtilities.dp(LocaleController.isRTL ? 8 : 18), 0, AndroidUtilities.dp(LocaleController.isRTL ? 18 : 8), 0);
|
setPadding(AndroidUtilities.dp(LocaleController.isRTL ? 8 : 18), 0, AndroidUtilities.dp(LocaleController.isRTL ? 18 : 8), 0);
|
||||||
rightIcon.setImageResource(icon);
|
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) {
|
public void setTextAndIcon(CharSequence text, int icon) {
|
||||||
|
|
Loading…
Reference in a new issue