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

Commit 55910448 authored by Felipe Leme's avatar Felipe Leme
Browse files

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

Change-Id: Ib42fe5ba57d5ef31a00b39945ac3bcacbb217cc8
Fixes: 35965642
Bug: 33550221
Test: compilation only
parent 227bdecf
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.