Fix RTL padding issue for conversation items.

This commit is contained in:
Cody Henthorne 2021-02-11 11:47:37 -05:00 committed by GitHub
parent dda0e0393e
commit 0927914c57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1086,8 +1086,10 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
private void setGutterSizes(@NonNull MessageRecord current, boolean isGroupThread) {
if (isGroupThread && current.isOutgoing()) {
ViewUtil.setPaddingStart(this, readDimen(R.dimen.conversation_group_left_gutter));
ViewUtil.setPaddingEnd(this, readDimen(R.dimen.conversation_individual_right_gutter));
} else if (current.isOutgoing()) {
ViewUtil.setPaddingStart(this, readDimen(R.dimen.conversation_individual_left_gutter));
ViewUtil.setPaddingEnd(this, readDimen(R.dimen.conversation_individual_right_gutter));
}
}