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

Commit bdaa34c6 authored by Ben Komalo's avatar Ben Komalo
Browse files

Fix Spinners that don't have a hard pixel width set.

getDimensionPixelSize -> getLayoutDimension

Change-Id: Ic126955ad7c7cee3aea423c43fc16da02ec9664e
parent db3694d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ public class Spinner extends AbsSpinner implements OnClickListener {

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

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