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

Commit 5a4e12e1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't set auto-fill options when Spinner has no adapter."

parents f4537dcf 55910448
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -921,6 +921,9 @@ public class Spinner extends AbsSpinner implements OnClickListener {
    @Override
    public void onProvideAutoFillStructure(ViewStructure structure, int flags) {
        super.onProvideAutoFillStructure(structure, flags);

        if (getAdapter() == null) return;

        // TODO(b/33197203): implement sanitization so initial value is only sanitized when coming
        // from resources.