OSDN Git Service

NumberPicker incorectly enforcing minimal width and height.
authorSvetoslav Ganov <svetoslavganov@google.com>
Tue, 8 Nov 2011 02:43:01 +0000 (18:43 -0800)
committerSvetoslav Ganov <svetoslavganov@google.com>
Tue, 8 Nov 2011 02:49:25 +0000 (18:49 -0800)
commit698e1d5d867a7ac653fa1d6f29cef4cfb73fad38
treef43b14f6150730cdfde23adc496f4427b5a7bbb4
parent2d9ccdb4abd393375c5ae99445afbb8b0855d25c
NumberPicker incorectly enforcing minimal width and height.

The min width and height were enforced with an exception which
is not correct since a view not having enough space should not
terminate the application. Now the insufficient vertical or
horizontal space is propagated by setting the
MEASURED_STATE_TOO_SMALL flag and respecting the constraints
imposed while measuring (consistent with the rest of the View
hierarchy).

bug:5572237

Change-Id: I2dbeb5451d3426cc983b41f6023c7b0fc52c7da3
core/java/android/widget/NumberPicker.java