Rename audio/video fragment

This commit is contained in:
Margaux Clerc 2015-10-15 18:02:28 +02:00
parent 24af401775
commit a68f8010a0
3 changed files with 18 additions and 18 deletions

View file

@ -1,7 +1,7 @@
package org.linphone;
/*
InCallActivity.java
Copyright (C) 2012 Belledonne Communications, Grenoble, France
CallActivity.java
Copyright (C) 2015 Belledonne Communications, Grenoble, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@ -87,8 +87,8 @@ public class CallActivity extends Activity implements OnClickListener {
private LinearLayout routeLayout, mNoCurrentCall, callInfo;
private ProgressBar videoProgress;
private StatusFragment status;
private AudioCallFragment audioCallFragment;
private VideoCallFragment videoCallFragment;
private CallAudioFragment audioCallFragment;
private CallVideoFragment videoCallFragment;
private boolean isSpeakerEnabled = false, isMicMuted = false, isTransferAllowed, isAnimationDisabled;
private LinearLayout mControlsLayout;
private Numpad numpad;
@ -245,16 +245,16 @@ public class CallActivity extends Activity implements OnClickListener {
Fragment callFragment;
if (isVideoEnabled(LinphoneManager.getLc().getCurrentCall())) {
callFragment = new VideoCallFragment();
videoCallFragment = (VideoCallFragment) callFragment;
callFragment = new CallVideoFragment();
videoCallFragment = (CallVideoFragment) callFragment;
isSpeakerEnabled = true;
if (cameraNumber > 1) {
switchCamera.setVisibility(View.VISIBLE);
}
} else {
callFragment = new AudioCallFragment();
audioCallFragment = (AudioCallFragment) callFragment;
callFragment = new CallAudioFragment();
audioCallFragment = (CallAudioFragment) callFragment;
switchCamera.setVisibility(View.INVISIBLE);
}
@ -729,7 +729,7 @@ public class CallActivity extends Activity implements OnClickListener {
}
private void replaceFragmentVideoByAudio() {
audioCallFragment = new AudioCallFragment();
audioCallFragment = new CallAudioFragment();
FragmentTransaction transaction = getFragmentManager().beginTransaction();
transaction.replace(R.id.fragmentContainer, audioCallFragment);
try {
@ -740,7 +740,7 @@ public class CallActivity extends Activity implements OnClickListener {
private void replaceFragmentAudioByVideo() {
// Hiding controls to let displayVideoCallControlsIfHidden add them plus the callback
videoCallFragment = new VideoCallFragment();
videoCallFragment = new CallVideoFragment();
FragmentTransaction transaction = getFragmentManager().beginTransaction();
transaction.replace(R.id.fragmentContainer, videoCallFragment);
@ -1364,11 +1364,11 @@ public class CallActivity extends Activity implements OnClickListener {
return super.onKeyDown(keyCode, event);
}
public void bindAudioFragment(AudioCallFragment fragment) {
public void bindAudioFragment(CallAudioFragment fragment) {
audioCallFragment = fragment;
}
public void bindVideoFragment(VideoCallFragment fragment) {
public void bindVideoFragment(CallVideoFragment fragment) {
videoCallFragment = fragment;
}

View file

@ -1,7 +1,7 @@
package org.linphone;
/*
AudioCallFragment.java
Copyright (C) 2012 Belledonne Communications, Grenoble, France
CallAudioFragment.java
Copyright (C) 2015 Belledonne Communications, Grenoble, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@ -29,7 +29,7 @@ import android.view.ViewGroup;
/**
* @author Sylvain Berfini
*/
public class AudioCallFragment extends Fragment {
public class CallAudioFragment extends Fragment {
private CallActivity incallActvityInstance;
@Override

View file

@ -1,7 +1,7 @@
package org.linphone;
/*
VideoCallFragment.java
Copyright (C) 2012 Belledonne Communications, Grenoble, France
CallVideoFragment.java
Copyright (C) 2015 Belledonne Communications, Grenoble, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@ -44,7 +44,7 @@ import android.view.ViewGroup;
/**
* @author Sylvain Berfini
*/
public class VideoCallFragment extends Fragment implements OnGestureListener, OnDoubleTapListener, CompatibilityScaleGestureListener {
public class CallVideoFragment extends Fragment implements OnGestureListener, OnDoubleTapListener, CompatibilityScaleGestureListener {
private SurfaceView mVideoView;
private SurfaceView mCaptureView;
private AndroidVideoWindowImpl androidVideoWindowImpl;