OSDN Git Service

Fix Spinner not restoring selection when set to GONE
authorDoris Liu <tianliu@google.com>
Wed, 9 Sep 2015 20:59:32 +0000 (13:59 -0700)
committerDoris Liu <tianliu@google.com>
Sat, 12 Sep 2015 01:03:28 +0000 (18:03 -0700)
commitb7714ae157407673cff6776f4ad90c183cd78bd6
tree4fdc622dd23bf5461d0212590266060e8165d308
parentd82e0d94fc090e93f237613071a1534496116103
Fix Spinner not restoring selection when set to GONE

This CL restores the selected position when AdapterView
gets restored, rather than wait until the next measure/layout
pass to do it. After the change, even when the AdapterView
is set to GONE (i.e. no measure/layout pass), the selection
will still be kept up to date.

Bug: 23619366

Change-Id: I09a31b6e2a61ca0edf129af8fe634b83784f9167
core/java/android/widget/AdapterView.java