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

Commit 72536f72 authored by Ben Komalo's avatar Ben Komalo
Browse files

Apply values set in "dropDownWidth" attribute of Spinner styles.

Bug: 3099224
Change-Id: I904f2ef39a65a62076ff82319128a31767a2394b
parent 97929aa9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -153,6 +153,9 @@ public class Spinner extends AbsSpinner implements OnClickListener {

            DropdownPopup popup = new DropdownPopup(context, attrs, defStyle, hintResource);

            popup.setWidth(a.getDimensionPixelSize(
                    com.android.internal.R.styleable.Spinner_dropDownWidth,
                    ViewGroup.LayoutParams.WRAP_CONTENT));
            popup.setBackgroundDrawable(a.getDrawable(
                    com.android.internal.R.styleable.Spinner_popupBackground));
            popup.setVerticalOffset(a.getDimensionPixelOffset(