Fixed super.oncreate() not called
This commit is contained in:
parent
88efcbf6eb
commit
c77cf319ad
2 changed files with 1 additions and 7 deletions
|
@ -316,13 +316,6 @@ public class LinphoneService extends Service implements LinphoneCoreListener {
|
|||
throw new LinphoneConfigException(getString(R.string.wrong_settings),e);
|
||||
}
|
||||
boolean isVideoEnabled = mPref.getBoolean(getString(R.string.pref_video_enable_key),false);
|
||||
if (isVideoEnabled) {
|
||||
try {
|
||||
System.loadLibrary("msandroiddisplay");
|
||||
} catch (Throwable e) {
|
||||
Log.e(TAG, "cannot load video plugin", e);
|
||||
}
|
||||
}
|
||||
mLinphoneCore.enableVideo(isVideoEnabled, isVideoEnabled);
|
||||
//1 read proxy config from preferences
|
||||
String lUserName = mPref.getString(getString(R.string.pref_username_key), null);
|
||||
|
|
|
@ -28,6 +28,7 @@ public class VideoCallActivity extends Activity {
|
|||
SurfaceView mVideoView;
|
||||
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.videocall);
|
||||
mVideoView = (SurfaceView) findViewById(R.id.video_surface);
|
||||
LinphoneService.instance().getLinphoneCore().setVideoWindow((Object) mVideoView) ;
|
||||
|
|
Loading…
Reference in a new issue