diff options
author | Romain Guy <romainguy@google.com> | 2010-05-13 11:52:37 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-05-13 14:03:09 -0700 |
commit | 82afc7b32b5a22fe5a0f1a98e8fd0873a4b7f9a1 (patch) | |
tree | 5ab42580d6f3e4493d6327596e5b6c8b9dd719ce /graphics/java/android/renderscript/Script.java | |
parent | d4a2fffefdd27450ce7ef3867d2a2aaf87315969 (diff) |
Prevent possible leak in AbsListViews.
This change unregisters a list's data observer from the adapter when the list
is detached from the window. The default data observer impl. is a non-static
inner class with a synthesized pointer to the list. Thus if an app keeps
the adapter around the list is also kept around. This can be a problem with
dialogs in particular.
Change-Id: Ia95a995d3f54b9caf1bbcd2c7239a0318511b08c
Diffstat (limited to 'graphics/java/android/renderscript/Script.java')
0 files changed, 0 insertions, 0 deletions