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

Commit f967d049 authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am ccc837e3: am 2ebac694: Fix bug 3334437 - require an adapter to measure dropdown content width

* commit 'ccc837e3':
  Fix bug 3334437 - require an adapter to measure dropdown content width
parents dfcd15b1 ccc837e3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -672,6 +672,10 @@ public class Spinner extends AbsSpinner implements OnClickListener {
        @Override
        public int measureContentWidth() {
            final SpinnerAdapter adapter = getAdapter();
            if (adapter == null) {
                return 0;
            }

            int width = 0;
            View itemView = null;
            int itemType = 0;