Merge "Don't set auto-fill options when Spinner has no adapter."
This commit is contained in:
committed by
Android (Google) Code Review
commit
5a4e12e143
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user