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

Commit 3f10b1c8 authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Fix NPE when Spinner is reused.

Bug: 2958228
Change-Id: I2c5e322b92fd4896361d02a307d0ba0ef3d33029
parent 3a23a3f3
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -144,7 +144,6 @@ public class Spinner extends AbsSpinner implements OnClickListener {
        
        if (mPopup != null && mPopup.isShowing()) {
            mPopup.dismiss();
            mPopup = null;
        }
    }

@@ -316,7 +315,6 @@ public class Spinner extends AbsSpinner implements OnClickListener {
    public void onClick(DialogInterface dialog, int which) {
        setSelection(which);
        dialog.dismiss();
        mPopup = null;
    }

    /**
@@ -543,6 +541,7 @@ public class Spinner extends AbsSpinner implements OnClickListener {
            }
        }

        @Override
        public void show() {
            if (mHintView == null) {
                final TextView textView = (TextView) LayoutInflater.from(getContext()).inflate(