mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-02 23:15:39 +00:00
Fix group conversation layout
This commit is contained in:
parent
c76ffc72b4
commit
c4d302e3ac
@ -18,7 +18,7 @@
|
|||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="@dimen/large_spacing"
|
android:paddingStart="12dp"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:clipChildren="false">
|
android:clipChildren="false">
|
||||||
|
|
||||||
@ -58,7 +58,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="@dimen/massive_spacing"
|
android:layout_marginEnd="@dimen/massive_spacing"
|
||||||
android:layout_marginStart="@dimen/large_spacing"
|
android:layout_marginStart="12dp"
|
||||||
android:paddingTop="@dimen/medium_spacing"
|
android:paddingTop="@dimen/medium_spacing"
|
||||||
android:paddingBottom="@dimen/medium_spacing"
|
android:paddingBottom="@dimen/medium_spacing"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
@ -798,7 +798,7 @@ public class ConversationItem extends LinearLayout
|
|||||||
|
|
||||||
private void setContactPhoto(@NonNull Recipient recipient) {
|
private void setContactPhoto(@NonNull Recipient recipient) {
|
||||||
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams)bodyBubble.getLayoutParams();
|
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams)bodyBubble.getLayoutParams();
|
||||||
int groupThreadMargin = (int)(getResources().getDimension(R.dimen.large_spacing) + getResources().getDimension(R.dimen.small_profile_picture_size));
|
int groupThreadMargin = (int)((12 * getResources().getDisplayMetrics().density) + getResources().getDimension(R.dimen.small_profile_picture_size));
|
||||||
int defaultMargin = 0;
|
int defaultMargin = 0;
|
||||||
String threadName = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(messageRecord.getThreadId()).getName();
|
String threadName = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(messageRecord.getThreadId()).getName();
|
||||||
boolean isRSSFeed = threadName != null && (threadName.equals("Loki News") || threadName.equals("Session Updates"));
|
boolean isRSSFeed = threadName != null && (threadName.equals("Loki News") || threadName.equals("Session Updates"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user