summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/13/changes
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-09-22 19:44:04 -0700
committerAdam Powell <adamp@google.com>2011-09-22 19:55:41 -0700
commit7db82acd8151684a886d4725ddf2790ef3a2f80e (patch)
treeefa891661850f9a2ff5068a25e9f87f70bc26a97 /docs/html/sdk/api_diff/13/changes
parente94d950d122005bb10e11dd18b6029d0108f2fbe (diff)
Fix leaky view tags
The implementation of the method View#setTag(int, Object) stored tag objects as entries in a static WeakHashMap associated with the View as a key. This was problematic for any tag object that stored a hard reference back to the View the tag was placed on, as it would cause the WeakReference key to never be collected and the entry to persist forever. This was particularly nasty if an app used a keyed tag to store a ViewHolder object referencing child views for use in the Adapter implementaion for an AdapterView, since child views will always have hard references leading back to the parent. Change-Id: Ia17840a301ba0e0c928861405388fb2f625dac2c
Diffstat (limited to 'docs/html/sdk/api_diff/13/changes')
0 files changed, 0 insertions, 0 deletions