Skip to content
This repository was archived by the owner on Oct 15, 2018. It is now read-only.

Get bitmap from removed #48

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Bitmap getBitmapFromRemoved(final int width, final int height) {
while (it.hasNext()) {
CacheableBitmapDrawable value = it.next().get();

if (value != null && value.isBitmapValid() && value.isBitmapMutable()) {
if (value != null && value.isBitmapValid() && value.isBitmapMutable() && !value.isBeingDisplayed() && !value.isReferencedByCache()) {
if (value.getIntrinsicWidth() == width
&& value.getIntrinsicHeight() == height) {
it.remove();
Expand Down