mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix image loading from resource (#56)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user