Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46f58917 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed an issue where the messaging layout could appear empty

Change-Id: I0fe6e7a23068f10e6c867424027e7a86c9210186
Fixes: 73952748
Test: send long message, observe normal layout, not cut off
parent 9f88bbc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ public class MessagingTextMessage extends ImageFloatingTextView implements Messa
    public int getMeasuredType() {
        boolean measuredTooSmall = getMeasuredHeight()
                < getLayoutHeight() + getPaddingTop() + getPaddingBottom();
        if (measuredTooSmall) {
        if (measuredTooSmall && getLineCount() <= 1) {
            return MEASURED_TOO_SMALL;
        } else {
            Layout layout = getLayout();
+1 −2
Original line number Diff line number Diff line
@@ -42,8 +42,7 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/notification_text_margin_top"
            android:spacing="2dp"
            android:layout_weight="1"/>
            android:spacing="2dp"/>
    </com.android.internal.widget.RemeasuringLinearLayout>
    <FrameLayout
        android:id="@+id/messaging_group_icon_container"