mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-01-03 09:49:15 +01:00
Fix style in RTL languages
This commit is contained in:
parent
6cb1cdf898
commit
c9711c5870
1 changed files with 8 additions and 2 deletions
|
@ -201,10 +201,16 @@ public class TextSettingsCell extends FrameLayout {
|
|||
MarginLayoutParams params = (MarginLayoutParams) textView.getLayoutParams();
|
||||
if (resId == 0) {
|
||||
imageView.setVisibility(GONE);
|
||||
if (LocaleController.isRTL)
|
||||
params.rightMargin = 0;
|
||||
else
|
||||
params.leftMargin = 0;
|
||||
} else {
|
||||
imageView.setImageResource(resId);
|
||||
imageView.setVisibility(VISIBLE);
|
||||
if (LocaleController.isRTL)
|
||||
params.rightMargin = AndroidUtilities.dp(71);
|
||||
else
|
||||
params.leftMargin = AndroidUtilities.dp(71);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue