diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 94eeabdad1..0e4fcd0cff 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -259,15 +259,15 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? 1.1f : 1f) + textSize * 0.9f + (compact ? 0 : textSize * 0.9f)); - ViewGroup.LayoutParams lparams = ivAvatar.getLayoutParams(); + ViewGroup.LayoutParams lparams = ibAvatar.getLayoutParams(); if (lparams.height != px) { lparams.width = px; lparams.height = px; - ivAvatar.requestLayout(); + ibAvatar.requestLayout(); } } @@ -707,7 +709,7 @@ public class AdapterMessage extends RecyclerView.Adapter result = new ArrayList<>(); if (Boolean.FALSE.equals(message.dkim)) diff --git a/app/src/main/res/layout/include_message_compact.xml b/app/src/main/res/layout/include_message_compact.xml index 852c807355..55770dffca 100644 --- a/app/src/main/res/layout/include_message_compact.xml +++ b/app/src/main/res/layout/include_message_compact.xml @@ -44,12 +44,14 @@ app:layout_constraintStart_toEndOf="@+id/ibExpander" app:layout_constraintTop_toTopOf="parent" /> - @@ -141,7 +143,7 @@ android:layout_marginStart="6dp" android:contentDescription="@string/title_legend_folder_type" app:layout_constraintBottom_toBottomOf="@+id/tvSubject" - app:layout_constraintStart_toEndOf="@id/ivAvatar" + app:layout_constraintStart_toEndOf="@id/ibAvatar" app:layout_constraintTop_toTopOf="@+id/tvSubject" app:srcCompat="@drawable/baseline_edit_24" /> @@ -246,7 +248,7 @@ android:text="Folder" android:textAppearance="@style/TextAppearance.AppCompat.Small" app:layout_constraintEnd_toStartOf="@+id/ibFlagged" - app:layout_constraintStart_toEndOf="@id/ivAvatar" + app:layout_constraintStart_toEndOf="@id/ibAvatar" app:layout_constraintTop_toBottomOf="@id/tvSubject" /> - @@ -143,7 +145,7 @@ android:text="Subject" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintEnd_toStartOf="@+id/ibFlagged" - app:layout_constraintStart_toEndOf="@id/ivAvatar" + app:layout_constraintStart_toEndOf="@id/ibAvatar" app:layout_constraintTop_toBottomOf="@id/tvFrom" />