Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an extra event to notify when the SubsamplingScaleImageView has finished using the preview bitmap #222

Merged
merged 1 commit into from
Jun 30, 2016

Conversation

laurencedawson
Copy link
Contributor

In the case where setImage() is called using ImageSource.cachedBitmap() I found it to be handy to know when the SubsamplingScaleImageView has finished using the cached bitmap.

In my app I have started to aggressively reuse bitmaps after reading this article. Having this extra callback allows me to mark the bitmap as no longer in use and free for reuse.

This might be a little niche but I figured it was worth submitting!

Cheers
Laurence

… finished using the preview bitmap

In the case where setImage() is called using ImageSource.cachedBitmap() I found it to be handy to know when the SubsamplingScaleImageView has finished using the cached bitmap.

In my app I have started to aggressively reuse bitmaps after reading [this article](http://blog.booking.com/android-reuse-bitmaps.html). Having this extra callback allows me to mark the bitmap as no longer in use and free for reuse.

This might be a little niche but I figured it was worth submitting!

Cheers
Laurence
@davemorrissey davemorrissey merged commit 830872b into davemorrissey:master Jun 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants