mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Fixed current CallParams not copied.
Fixed not always sending static image on camera muted. Improved organization of preference activity.
This commit is contained in:
parent
6df330a6b4
commit
77745099ba
2 changed files with 9 additions and 11 deletions
|
|
@ -29,7 +29,7 @@ class LinphoneCallImpl implements LinphoneCall {
|
|||
private native boolean isIncoming(long nativePtr);
|
||||
native private long getRemoteAddress(long nativePtr);
|
||||
native private int getState(long nativePtr);
|
||||
private native long getCurrentParams(long nativePtr);
|
||||
private native long getCurrentParamsCopy(long nativePtr);
|
||||
private native void enableCamera(long nativePtr, boolean enabled);
|
||||
|
||||
protected LinphoneCallImpl(long aNativePtr) {
|
||||
|
|
@ -61,11 +61,8 @@ class LinphoneCallImpl implements LinphoneCall {
|
|||
public State getState() {
|
||||
return LinphoneCall.State.fromInt(getState(nativePtr));
|
||||
}
|
||||
public LinphoneCallParams getCurrentParamsReadOnly() {
|
||||
return new LinphoneCallParamsImpl(getCurrentParams(nativePtr));
|
||||
}
|
||||
public LinphoneCallParams getCurrentParamsReadWrite() {
|
||||
return getCurrentParamsReadOnly().copy();
|
||||
public LinphoneCallParams getCurrentParamsCopy() {
|
||||
return new LinphoneCallParamsImpl(getCurrentParamsCopy(nativePtr));
|
||||
}
|
||||
|
||||
public void enableCamera(boolean enabled) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
|||
|
||||
private native void enableVideo(long nativePtr, boolean b);
|
||||
private native boolean getVideoEnabled(long nativePtr);
|
||||
private native long copy(long nativePtr);
|
||||
private native void destroy(long nativePtr);
|
||||
|
||||
|
||||
public boolean getVideoEnabled() {
|
||||
|
|
@ -37,9 +37,10 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
|||
public void setVideoEnabled(boolean b) {
|
||||
enableVideo(nativePtr, b);
|
||||
}
|
||||
|
||||
public LinphoneCallParams copy() {
|
||||
return new LinphoneCallParamsImpl(copy(nativePtr));
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
destroy(nativePtr);
|
||||
super.finalize();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue