Merge "Fixed an issue where the messaging layout could appear empty" into pi-dev

am: 1e543887f5

Change-Id: I0bfda0c9b5700f5d1d27133b0ac9b7d8640d4e60
This commit is contained in:
Selim Cinek
2018-05-01 16:03:28 -07:00
committed by android-build-merger
2 changed files with 2 additions and 3 deletions

View File

@@ -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();

View File

@@ -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"