Fix issues on rotation

This commit is contained in:
Sylvain Berfini 2016-07-01 14:49:51 +02:00
parent 1fe3e20131
commit f763bfb726
3 changed files with 1 additions and 16 deletions

View file

@ -61,7 +61,7 @@ public class CallVideoFragment extends Fragment implements OnGestureListener, On
if (LinphoneManager.getLc().hasCrappyOpenGL()) {
view = inflater.inflate(R.layout.video_no_opengl, container, false);
} else {
view = inflater.inflate(R.layout.video, container, false);
view = inflater.inflate(R.layout.video, container, false);
}
mVideoView = (SurfaceView) view.findViewById(R.id.videoSurface);

View file

@ -140,17 +140,6 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta
return instance;
throw new RuntimeException("LinphoneActivity not instantiated yet");
}
@Override
protected void onSaveInstanceState(Bundle outState) {
outState.putSerializable("CurrentFragment", currentFragment);
super.onSaveInstanceState(outState);
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
@ -198,8 +187,6 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta
currentFragment = nextFragment = FragmentsAvailable.EMPTY;
if (savedInstanceState == null) {
changeCurrentFragment(FragmentsAvailable.DIALER, getIntent().getExtras());
} else {
changeCurrentFragment(((FragmentsAvailable)savedInstanceState.getSerializable("CurrentFragment")), getIntent().getExtras());
}
mListener = new LinphoneCoreListenerBase(){

View file

@ -153,8 +153,6 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
.withValue(ContactsContract.CommonDataKinds.Photo.PHOTO, photo)
.build());
}
} else if (isLinphoneFriend()) {
//TODO: prepare photo changes in friend
}
}
}