Added layout workaround for RTL

This commit is contained in:
M66B 2023-12-15 08:11:45 +01:00
parent d6b0ded332
commit d8a34f680f
1 changed files with 7 additions and 0 deletions

View File

@ -1565,6 +1565,13 @@ public class FragmentMessages extends FragmentBase
} }
}); });
// Workaround for RTL layout bug
boolean rtl = getContext().getResources().getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
if (rtl) {
int dp71 = Helper.dp2pixels(getContext(), 56 /* FAB width */ + 15 /* FAB padding */);
((ViewGroup.MarginLayoutParams) cardMore.getLayoutParams()).setMarginEnd(dp71);
}
ibBatchSeen.setOnClickListener(new View.OnClickListener() { ibBatchSeen.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {