commit | fc442bdea14289656ef1f537103578eb71faf473 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Jun 10 21:34:48 2011 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Fri Jun 10 23:24:49 2011 -0700 |
tree | 49edd417cf8b1463993a52cc234d0edab439c849 | |
parent | eaf7ce6067707fcebd58067135376af51858d2e5 [diff] |
Ensure the RemoteViewsAdapter cleans up its HandlerThread. Using a finalizer for this is kind of gross but it is robust. We could try to hook onDetachedFromWindow() on the View but that would introduce additional lifecycle management to the adapter since a View could potentially be detached and then reattached, so we might need to recreate the handler, etc. Ideally this code should probably be changed to use AsyncTask. Change-Id: I9ad5fff388411619363e4a075ed0244966b38726