Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/CallFragment.java

Issue 2377003002: Format all Java in WebRTC. (Closed)
Patch Set: Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
-
}

Powered by Google App Engine
This is Rietveld 408576698