fix sip uri presentation in History

fix landscape mode
This commit is contained in:
Jehan Monnier 2010-03-16 12:37:05 +01:00
parent 5136048097
commit 083b74b925
3 changed files with 14 additions and 7 deletions

View file

@ -146,5 +146,11 @@ public interface LinphoneCore {
* @return level in db
*/
public float getSoftPlayLevel();
/**
* Mutes or unmutes the local microphone.
* @param isMuted
*/
public void muteMic(boolean isMuted);
}

View file

@ -23,14 +23,11 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.linphone.LinphoneService;
import android.util.Log;
class LinphoneCoreImpl implements LinphoneCore {
private final LinphoneCoreListener mListener;
@SuppressWarnings("unused")
private final LinphoneCoreListener mListener; //to make sure to keep a reference on this object
private long nativePtr = 0;
private native long newLinphoneCore(LinphoneCoreListener listener,String userConfig,String factoryConfig,Object userdata);
private native void iterate(long nativePtr);
@ -54,6 +51,7 @@ class LinphoneCoreImpl implements LinphoneCore {
private native void setNetworkStateReachable(long nativePtr,boolean isReachable);
private native void setSoftPlayLevel(long nativeptr, float gain);
private native float getSoftPlayLevel(long nativeptr);
private native void muteMic(long nativePtr,boolean isMuted);
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
@ -168,4 +166,7 @@ class LinphoneCoreImpl implements LinphoneCore {
public float getSoftPlayLevel() {
return getSoftPlayLevel(nativePtr);
}
public void muteMic(boolean isMuted) {
muteMic(nativePtr,isMuted);
}
}

View file

@ -42,8 +42,8 @@ class LinphoneProxyConfigImpl implements LinphoneProxyConfig {
ownPtr=false;
}
protected void finalize() throws Throwable {
Log.e(LinphoneService.TAG,"fixme, should release underlying proxy config");
// FIXME if (ownPtr) delete(nativePtr);
//Log.e(LinphoneService.TAG,"fixme, should release underlying proxy config");
if (ownPtr) delete(nativePtr);
}
private native long newLinphoneProxyConfig();
private native void delete(long ptr);