chrisbanes/PhotoView — pull request #37 by robUx4 (2013-03-12 14:18:39+00:00)
Title: Fixes an issue when PhotoView is in a ViewPager

don't keep the ViewObserver as it may not be alive when we need to remove our view

The page with a PhotoView would be destroyed and the observer was marked as not being alive, but the listener was still called later, triggering the throw in PhotoViewAttacher saying not to use it anymore (cleanup already done).

This patch fixes this issue and should work as before in all other cases.