Commit 4fe4e786 by Sebastián Katzer

Also look into the raw folder on Android to get the resource id.

parent e50f6f2f
......@@ -262,7 +262,7 @@ public final class AssetUtil {
}
/**
* Resource ID for drawable.
* Get resource ID.
*
* @param res The resources where to look for.
* @param resPath The name of the resource.
......@@ -280,6 +280,10 @@ public final class AssetUtil {
resId = res.getIdentifier(resName, "drawable", pkgName);
}
if (resId == 0) {
resId = res.getIdentifier(resName, "raw", pkgName);
}
return resId;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment