| Index: webrtc/examples/androidapp/src/org/appspot/apprtc/CallFragment.java
|
| diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallFragment.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallFragment.java
|
| index f9e89d89994d703a246bc7b974e8f00d2f2ca5a5..8482de07a38a7cd1d208904a810791c1d35af92c 100644
|
| --- a/webrtc/examples/androidapp/src/org/appspot/apprtc/CallFragment.java
|
| +++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/CallFragment.java
|
| @@ -50,26 +50,18 @@ public class CallFragment extends Fragment {
|
| }
|
|
|
| @Override
|
| - public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
| - Bundle savedInstanceState) {
|
| - controlView =
|
| - inflater.inflate(R.layout.fragment_call, container, false);
|
| + public View onCreateView(
|
| + LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
| + controlView = inflater.inflate(R.layout.fragment_call, container, false);
|
|
|
| // Create UI controls.
|
| - contactView =
|
| - (TextView) controlView.findViewById(R.id.contact_name_call);
|
| - disconnectButton =
|
| - (ImageButton) controlView.findViewById(R.id.button_call_disconnect);
|
| - cameraSwitchButton =
|
| - (ImageButton) controlView.findViewById(R.id.button_call_switch_camera);
|
| - videoScalingButton =
|
| - (ImageButton) controlView.findViewById(R.id.button_call_scaling_mode);
|
| - toggleMuteButton =
|
| - (ImageButton) controlView.findViewById(R.id.button_call_toggle_mic);
|
| - captureFormatText =
|
| - (TextView) controlView.findViewById(R.id.capture_format_text_call);
|
| - captureFormatSlider =
|
| - (SeekBar) controlView.findViewById(R.id.capture_format_slider_call);
|
| + contactView = (TextView) controlView.findViewById(R.id.contact_name_call);
|
| + disconnectButton = (ImageButton) controlView.findViewById(R.id.button_call_disconnect);
|
| + cameraSwitchButton = (ImageButton) controlView.findViewById(R.id.button_call_switch_camera);
|
| + videoScalingButton = (ImageButton) controlView.findViewById(R.id.button_call_scaling_mode);
|
| + toggleMuteButton = (ImageButton) controlView.findViewById(R.id.button_call_toggle_mic);
|
| + captureFormatText = (TextView) controlView.findViewById(R.id.capture_format_text_call);
|
| + captureFormatSlider = (SeekBar) controlView.findViewById(R.id.capture_format_slider_call);
|
|
|
| // Add buttons click events.
|
| disconnectButton.setOnClickListener(new View.OnClickListener() {
|
| @@ -90,12 +82,10 @@ public class CallFragment extends Fragment {
|
| @Override
|
| public void onClick(View view) {
|
| if (scalingType == ScalingType.SCALE_ASPECT_FILL) {
|
| - videoScalingButton.setBackgroundResource(
|
| - R.drawable.ic_action_full_screen);
|
| + videoScalingButton.setBackgroundResource(R.drawable.ic_action_full_screen);
|
| scalingType = ScalingType.SCALE_ASPECT_FIT;
|
| } else {
|
| - videoScalingButton.setBackgroundResource(
|
| - R.drawable.ic_action_return_from_full_screen);
|
| + videoScalingButton.setBackgroundResource(R.drawable.ic_action_return_from_full_screen);
|
| scalingType = ScalingType.SCALE_ASPECT_FILL;
|
| }
|
| callEvents.onVideoScalingSwitch(scalingType);
|
| @@ -144,5 +134,4 @@ public class CallFragment extends Fragment {
|
| super.onAttach(activity);
|
| callEvents = (OnCallEvents) activity;
|
| }
|
| -
|
| }
|
|
|