forked from mirrors/linphone-iphone
improve Android's platform helper
This commit is contained in:
parent
fe0b526baf
commit
3cf801a632
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue