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

Commit 58707d62 authored by Luca Zanolin's avatar Luca Zanolin
Browse files

Change the width of the suggestion item to match the one of the suggestion pop-up

Bug: 5267313
Change-Id: Ic7151398872459459f2537322961092d3ccffd1c
parent 9f48d634
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9742,6 +9742,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            View view = null;
            for (int i = 0; i < mNumberOfSuggestions; i++) {
                view = mSuggestionsAdapter.getView(i, view, mContentView);
                view.getLayoutParams().width = LayoutParams.WRAP_CONTENT;
                view.measure(horizontalMeasure, verticalMeasure);
                width = Math.max(width, view.getMeasuredWidth());
            }
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
-->

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="wrap_content"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingLeft="16dip"
          android:paddingRight="16dip"