mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-01-03 17:52:22 +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,11 +201,17 @@ 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);
|
||||||
params.leftMargin = 0;
|
if (LocaleController.isRTL)
|
||||||
|
params.rightMargin = 0;
|
||||||
|
else
|
||||||
|
params.leftMargin = 0;
|
||||||
} else {
|
} else {
|
||||||
imageView.setImageResource(resId);
|
imageView.setImageResource(resId);
|
||||||
imageView.setVisibility(VISIBLE);
|
imageView.setVisibility(VISIBLE);
|
||||||
params.leftMargin = AndroidUtilities.dp(71);
|
if (LocaleController.isRTL)
|
||||||
|
params.rightMargin = AndroidUtilities.dp(71);
|
||||||
|
else
|
||||||
|
params.leftMargin = AndroidUtilities.dp(71);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue