Fix image loading from resource (#56)

This commit is contained in:
Hristo Hristov
2016-10-07 15:28:16 +03:00
committed by GitHub
parent 6e2f86c9f2
commit ace4777811

View File

@@ -236,7 +236,7 @@ public class Fetcher extends Resizer {
decodeHeight, getImageCache());
} else if (stringData.startsWith(RESOURCE_PREFIX)) {
String resPath = stringData.substring(RESOURCE_PREFIX.length());
int resId = mResources.getIdentifier(stringData, "drawable", mPackageName);
int resId = mResources.getIdentifier(resPath, "drawable", mPackageName);
if (resId > 0) {
if (debuggable > 0) {
Log.v(TAG, "processBitmap - " + resId);