OSDN Git Service

Fix view recycling in filmstrip
authorAlan Newberger <alann@google.com>
Thu, 9 Apr 2015 17:42:06 +0000 (10:42 -0700)
committerAlan Newberger <alann@google.com>
Fri, 10 Apr 2015 00:12:19 +0000 (17:12 -0700)
commit5a0be52d3db2398cfe01d18adf779d9e443edf82
tree17eddedf8b211f625416705f55a45dfcac8382e5
parent220539de13121614b92323fdc54213aa587f991e
Fix view recycling in filmstrip

View recycling is pretty broken, with code put in for the old
camera preview in filmstrip being used to avoid recycling in all
cases. This looks like its been broken in a number of releases, but
less so due to a destructive removal of views during updates. I had
fixed that but it then exposed the issue that recycling wasn't occurring
elsewhere. This CL removes views from hierarchy, confirmed no more leaks
when capturing and when swiping through filmstrip.

Bug: 19970885
Change-Id: Ic63b9231bd24db0f44a99567278886eb0998d740
src/com/android/camera/widget/FilmstripView.java