Some LinphoneManager method are now public

This commit is contained in:
Sylvain Berfini 2014-09-03 11:31:18 +02:00
parent dc0c0fa1e8
commit 5ac6dabc6d

View file

@ -569,14 +569,14 @@ public class LinphoneManager implements LinphoneCoreListener {
copyIfNotExist(R.raw.rootca, mLinphoneRootCaFile); copyIfNotExist(R.raw.rootca, mLinphoneRootCaFile);
} }
private void copyIfNotExist(int ressourceId,String target) throws IOException { public void copyIfNotExist(int ressourceId, String target) throws IOException {
File lFileToCopy = new File(target); File lFileToCopy = new File(target);
if (!lFileToCopy.exists()) { if (!lFileToCopy.exists()) {
copyFromPackage(ressourceId,lFileToCopy.getName()); copyFromPackage(ressourceId,lFileToCopy.getName());
} }
} }
private void copyFromPackage(int ressourceId,String target) throws IOException{ public void copyFromPackage(int ressourceId, String target) throws IOException{
FileOutputStream lOutputStream = mServiceContext.openFileOutput (target, 0); FileOutputStream lOutputStream = mServiceContext.openFileOutput (target, 0);
InputStream lInputStream = mR.openRawResource(ressourceId); InputStream lInputStream = mR.openRawResource(ressourceId);
int readByte; int readByte;