mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
parent
8b46dda004
commit
f9c9068ca8
@ -178,7 +178,9 @@ public class ConversationListItem extends RelativeLayout
|
|||||||
|
|
||||||
LayoutParams subjectParams = (RelativeLayout.LayoutParams)this.subjectView.getLayoutParams();
|
LayoutParams subjectParams = (RelativeLayout.LayoutParams)this.subjectView.getLayoutParams();
|
||||||
subjectParams.addRule(RelativeLayout.LEFT_OF, R.id.thumbnail);
|
subjectParams.addRule(RelativeLayout.LEFT_OF, R.id.thumbnail);
|
||||||
|
if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
|
||||||
subjectParams.addRule(RelativeLayout.START_OF, R.id.thumbnail);
|
subjectParams.addRule(RelativeLayout.START_OF, R.id.thumbnail);
|
||||||
|
}
|
||||||
this.subjectView.setLayoutParams(subjectParams);
|
this.subjectView.setLayoutParams(subjectParams);
|
||||||
this.post(new ThumbnailPositioner(thumbnailView, archivedView, deliveryStatusIndicator, dateView));
|
this.post(new ThumbnailPositioner(thumbnailView, archivedView, deliveryStatusIndicator, dateView));
|
||||||
} else {
|
} else {
|
||||||
@ -186,7 +188,9 @@ public class ConversationListItem extends RelativeLayout
|
|||||||
|
|
||||||
LayoutParams subjectParams = (RelativeLayout.LayoutParams)this.subjectView.getLayoutParams();
|
LayoutParams subjectParams = (RelativeLayout.LayoutParams)this.subjectView.getLayoutParams();
|
||||||
subjectParams.addRule(RelativeLayout.LEFT_OF, R.id.delivery_status);
|
subjectParams.addRule(RelativeLayout.LEFT_OF, R.id.delivery_status);
|
||||||
|
if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
|
||||||
subjectParams.addRule(RelativeLayout.START_OF, R.id.delivery_status);
|
subjectParams.addRule(RelativeLayout.START_OF, R.id.delivery_status);
|
||||||
|
}
|
||||||
this.subjectView.setLayoutParams(subjectParams);
|
this.subjectView.setLayoutParams(subjectParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -257,11 +261,15 @@ public class ConversationListItem extends RelativeLayout
|
|||||||
(archivedView.getWidth() + deliveryStatusView.getWidth()) > dateView.getWidth())
|
(archivedView.getWidth() + deliveryStatusView.getWidth()) > dateView.getWidth())
|
||||||
{
|
{
|
||||||
thumbnailParams.addRule(RelativeLayout.LEFT_OF, R.id.delivery_status);
|
thumbnailParams.addRule(RelativeLayout.LEFT_OF, R.id.delivery_status);
|
||||||
|
if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
|
||||||
thumbnailParams.addRule(RelativeLayout.START_OF, R.id.delivery_status);
|
thumbnailParams.addRule(RelativeLayout.START_OF, R.id.delivery_status);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
thumbnailParams.addRule(RelativeLayout.LEFT_OF, R.id.date);
|
thumbnailParams.addRule(RelativeLayout.LEFT_OF, R.id.date);
|
||||||
|
if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
|
||||||
thumbnailParams.addRule(RelativeLayout.START_OF, R.id.date);
|
thumbnailParams.addRule(RelativeLayout.START_OF, R.id.date);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
thumbnailView.setLayoutParams(thumbnailParams);
|
thumbnailView.setLayoutParams(thumbnailParams);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user