mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-03-25 08:01:59 +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();
|
MarginLayoutParams params = (MarginLayoutParams) textView.getLayoutParams();
|
||||||
if (resId == 0) {
|
if (resId == 0) {
|
||||||
imageView.setVisibility(GONE);
|
imageView.setVisibility(GONE);
|
||||||
|
if (LocaleController.isRTL)
|
||||||
|
params.rightMargin = 0;
|
||||||
|
else
|
||||||
params.leftMargin = 0;
|
params.leftMargin = 0;
|
||||||
} else {
|
} else {
|
||||||
imageView.setImageResource(resId);
|
imageView.setImageResource(resId);
|
||||||
imageView.setVisibility(VISIBLE);
|
imageView.setVisibility(VISIBLE);
|
||||||
|
if (LocaleController.isRTL)
|
||||||
|
params.rightMargin = AndroidUtilities.dp(71);
|
||||||
|
else
|
||||||
params.leftMargin = AndroidUtilities.dp(71);
|
params.leftMargin = AndroidUtilities.dp(71);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue