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

This commit is contained in:
TreeHugger Robot
2017-03-04 10:10:55 +00:00
committed by Android (Google) Code Review

View File

@@ -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.