summaryrefslogtreecommitdiff
path: root/opengl/java/android/opengl/Texture.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-03-02 13:38:44 -0800
committerRomain Guy <romainguy@android.com>2010-03-02 13:41:46 -0800
commit0bf88594c43ced48d862d122e3e84967b3b63658 (patch)
tree7378d75ccaea6f2e27690de79a3e1312f0a81f24 /opengl/java/android/opengl/Texture.java
parentdb204c2383ccf2e4e5e8776e93c20b376aa6934e (diff)
Make sure all list items know they are in a window.
Bug #2476671 If you had a ListView with a layout_height equals to WRAP_CONTENT, you would get list children with a parent but not attached to the window. This was caused by the onMeasure() code: that code was obtaining views from the adapter to measure them and putting them in the recyler for later reuse. Unfortunately the recycler assumes that views have been attached to the window but detached from the parent, thus causing much grief. The fix simply forces measured views to be added to the window the first time they come out of the recycler. ListView, bow before me for I am your master!
Diffstat (limited to 'opengl/java/android/opengl/Texture.java')
0 files changed, 0 insertions, 0 deletions