Fix touchdelegate RTL issue.

This commit is contained in:
Alex Hart committed 2022-05-25 10:21:42 -03:00
1 parent 5ec6f0a71f
commit 926e3541e6
1 file changed
+7 -1
@@ -167,7 +167,13 @@ public final class ConversationListItem extends ConstraintLayout
super.onLayout(changed, left, top, right, bottom);
contactPhotoImage.getHitRect(newConversationAvatarTouchDelegateBounds);
newConversationAvatarTouchDelegateBounds.left = left;
if (getLayoutDirection() == LAYOUT_DIRECTION_LTR) {
newConversationAvatarTouchDelegateBounds.left = left;
} else {
newConversationAvatarTouchDelegateBounds.right = right;
}
newConversationAvatarTouchDelegateBounds.top = top;
newConversationAvatarTouchDelegateBounds.bottom = bottom;