Fix monkey bugs in ListView
* Don't run item click listeners as part of touch mode reset if the ListView is being detached from its window. Some calling code makes assumptions around this. * Remove redundant state tracking for window attachment from AbsListView now that we have View#isAttachedToWindow(). The timing of View's mechanism is closer to what we want here anyway - subclasses calling super.onDetachedFromWindow() as the first line of an overridden onDetachedFromWindow() method will see the window as being in a detached state while the rest of the method runs, resulting in the behavior described in the first bullet point above. Bug 10834897 Change-Id: Ic9fdff3c5cfc4996361a7fb1a863547b4d1a2c9c
Loading
Please register or sign in to comment