}
}
bmp = loadRegionBitmap(mUri, options, bounds);
+ if (destination != null) {
+ mLoadingLock.unlock();
+ return bmp;
+ }
if (bmp != null) {
+ // TODO: this workaround for RS might not be needed ultimately
+ Bitmap bmp2 = bmp.copy(Bitmap.Config.ARGB_8888, true);
float scaleFactor = imagePreset.getScaleFactor();
imagePreset.setScaleFactor(1.0f);
- bmp = imagePreset.apply(bmp);
+ bmp2 = imagePreset.apply(bmp2);
imagePreset.setScaleFactor(scaleFactor);
- mZoomCache.setImage(imagePreset, bounds, bmp);
+ mZoomCache.setImage(imagePreset, bounds, bmp2);
mLoadingLock.unlock();
- return bmp;
+ return bmp2;
}
}
mLoadingLock.unlock();