Hide LinphonecallImpl constructor.
linphonecalls should not be created from java.
This commit is contained in:
parent
9f1ee3f868
commit
7fa8cd1d5c
2 changed files with 3 additions and 4 deletions
|
@ -46,7 +46,7 @@ class LinphoneCallImpl implements LinphoneCall {
|
||||||
/*
|
/*
|
||||||
* This method must always be called from JNI, nothing else.
|
* This method must always be called from JNI, nothing else.
|
||||||
*/
|
*/
|
||||||
protected LinphoneCallImpl(long aNativePtr) {
|
private LinphoneCallImpl(long aNativePtr) {
|
||||||
nativePtr = aNativePtr;
|
nativePtr = aNativePtr;
|
||||||
}
|
}
|
||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
|
|
|
@ -560,10 +560,9 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
transferCallToAnother(nativePtr, getCallPtr(call), getCallPtr(dest));
|
transferCallToAnother(nativePtr, getCallPtr(call), getCallPtr(dest));
|
||||||
}
|
}
|
||||||
|
|
||||||
private native long findCallFromUri(long nativePtr, String uri);
|
private native Object findCallFromUri(long nativePtr, String uri);
|
||||||
@Override
|
@Override
|
||||||
public synchronized LinphoneCall findCallFromUri(String uri) {
|
public synchronized LinphoneCall findCallFromUri(String uri) {
|
||||||
long callPtr = findCallFromUri(nativePtr, uri);
|
return (LinphoneCall) findCallFromUri(nativePtr, uri);
|
||||||
return callPtr != 0 ? new LinphoneCallImpl(callPtr) : null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue