improve Android's platform helper

This commit is contained in:
Jehan Monnier 2018-05-23 18:21:47 +02:00
parent fe0b526baf
commit 3cf801a632

View file

@ -202,6 +202,10 @@ public class AndroidPlatformHelper {
}
public void copyFromPackage(int ressourceId, File target) throws IOException {
if (ressourceId == 0) {
Log.i("Resource identifier null for target ["+target.getName()+"]");
return;
}
if (!target.getParentFile().exists())
target.getParentFile().mkdirs();