Skip to content

Commit 7909fe7

Browse files
committed
Remove useless FrameLayout around the editor
1 parent 6b80817 commit 7909fe7

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

app/src/main/res/layout/fragment_new_message.xml

+7-15
Original file line numberDiff line numberDiff line change
@@ -284,37 +284,29 @@
284284
tools:listitem="@layout/item_attachment"
285285
tools:visibility="visible" />
286286

287-
<FrameLayout
288-
android:id="@+id/editorLayout"
287+
<com.infomaniak.lib.richhtmleditor.RichHtmlEditorWebView
288+
android:id="@+id/editor"
289289
android:layout_width="match_parent"
290290
android:layout_height="wrap_content"
291-
android:paddingTop="@dimen/marginStandardMedium"
291+
android:layout_marginTop="@dimen/marginStandardMedium"
292292
app:layout_constraintEnd_toEndOf="parent"
293293
app:layout_constraintStart_toStartOf="parent"
294-
app:layout_constraintTop_toBottomOf="@id/attachmentsRecyclerView">
295-
296-
<com.infomaniak.lib.richhtmleditor.RichHtmlEditorWebView
297-
android:id="@+id/editor"
298-
android:layout_width="match_parent"
299-
android:layout_height="wrap_content" />
300-
301-
</FrameLayout>
294+
app:layout_constraintTop_toBottomOf="@id/attachmentsRecyclerView" />
302295

303296
<TextView
304297
android:id="@+id/newMessagePlaceholder"
305298
android:layout_width="wrap_content"
306299
android:layout_height="wrap_content"
307300
android:layout_gravity="center_vertical"
308301
android:layout_marginStart="@dimen/marginStandardMedium"
309-
android:layout_marginTop="@dimen/marginStandardMedium"
310302
android:text="@string/newMessagePlaceholderTitle"
311303
android:textColor="@color/tertiaryTextColor"
312304
android:visibility="gone"
313-
app:layout_constraintBottom_toBottomOf="@id/editorLayout"
305+
app:layout_constraintBottom_toBottomOf="@id/editor"
314306
app:layout_constraintEnd_toEndOf="parent"
315307
app:layout_constraintHorizontal_bias="0"
316308
app:layout_constraintStart_toStartOf="parent"
317-
app:layout_constraintTop_toTopOf="@id/editorLayout"
309+
app:layout_constraintTop_toTopOf="@id/editor"
318310
tools:visibility="visible" />
319311

320312
<LinearLayout
@@ -371,7 +363,7 @@
371363
android:layout_marginBottom="@dimen/marginStandardMedium"
372364
app:layout_constraintEnd_toEndOf="parent"
373365
app:layout_constraintStart_toStartOf="parent"
374-
app:layout_constraintTop_toBottomOf="@id/editorLayout" />
366+
app:layout_constraintTop_toBottomOf="@id/editor" />
375367

376368
<com.google.android.material.button.MaterialButton
377369
android:id="@+id/removeSignature"

0 commit comments

Comments
 (0)