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

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

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

* commit '2ebac694':
  Fix bug 3334437 - require an adapter to measure dropdown content width
parents 6de1301b 2ebac694
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;