Fix layout when account chip is hidden
android:layout_width="match_parent"
android:layout_height="wrap_content">
+ <Space
+ android:id="@+id/margin_top"
+ android:layout_width="match_parent"
+ android:layout_height="16dp"
+ app:layout_constraintTop_toTopOf="parent" />
+
<com.google.android.material.chip.Chip
android:id="@+id/chip"
android:layout_width="wrap_content"
tools:chipBackgroundColor="#1976D2"
tools:text="Account name" />
+ <androidx.constraintlayout.widget.Barrier
+ android:id="@+id/top_margin_barrier"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:barrierDirection="bottom"
+ app:constraint_referenced_ids="chip,margin_top" />
+
<com.fsck.k9.ui.helper.BottomBaselineTextView
android:id="@+id/subject"
android:layout_width="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/flagged"
app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/top_margin_barrier"
+ app:layout_constraintVertical_bias="0.0"
tools:text="Message subject" />
<ImageView
