commit | 82afc7b32b5a22fe5a0f1a98e8fd0873a4b7f9a1 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Thu May 13 11:52:37 2010 -0700 |
committer | Romain Guy <romainguy@google.com> | Thu May 13 14:03:09 2010 -0700 |
tree | 5ab42580d6f3e4493d6327596e5b6c8b9dd719ce | |
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