Fix issues on rotation
This commit is contained in:
parent
1fe3e20131
commit
f763bfb726
3 changed files with 1 additions and 16 deletions
|
@ -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);
|
||||
|
|
|
@ -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(){
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue