| Chunk |
|---|
| Conflicting content |
|---|
mZoomButtonsController = new ZoomButtonsController(this);
mZoomButtonsController.setOnZoomListener(mZoomListener);
<<<<<<< HEAD
// ZoomButtonsController positions the buttons at the bottom, but in
// the middle. Change their layout parameters so they appear on the
// right.
View controls = mZoomButtonsController.getZoomControls();
ViewGroup.LayoutParams params = controls.getLayoutParams();
if (params instanceof FrameLayout.LayoutParams) {
FrameLayout.LayoutParams frameParams = (FrameLayout.LayoutParams)
params;
frameParams.gravity = Gravity.RIGHT;
}
=======
// Create the accessory buttons
LayoutInflater inflater =
(LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
ViewGroup container = mZoomButtonsController.getContainer();
inflater.inflate(com.android.internal.R.layout.zoom_browser_accessory_buttons, container);
mZoomOverviewButton =
(ImageView) container.findViewById(com.android.internal.R.id.zoom_page_overview);
mZoomOverviewButton.setOnClickListener(
new View.OnClickListener() {
public void onClick(View v) {
mZoomButtonsController.setVisible(false);
zoomScrollOut();
if (mLogEvent) {
Checkin.updateStats(mContext.getContentResolver(),
Checkin.Stats.Tag.BROWSER_ZOOM_OVERVIEW, 1, 0.0);
}
}
});
mZoomFitPageButton =
(ImageView) container.findViewById(com.android.internal.R.id.zoom_fit_page);
mZoomFitPageButton.setOnClickListener(
new View.OnClickListener() {
public void onClick(View v) {
zoomWithPreview(mDefaultScale);
updateZoomButtonsEnabled();
}
});
>>>>>>> 0d8b77c2453d0e597f94e39212e4bfeed8affffa
}
private void updateZoomButtonsEnabled() { |
| Solution content |
|---|
}
}
mZoomButtonsController = new ZoomButtonsController(this);
mZoomButtonsController.setOnZoomListener(mZoomListener);
// ZoomButtonsController positions the buttons at the bottom, but in
// the middle. Change their layout parameters so they appear on the
// right.
View controls = mZoomButtonsController.getZoomControls();
ViewGroup.LayoutParams params = controls.getLayoutParams();
if (params instanceof FrameLayout.LayoutParams) {
FrameLayout.LayoutParams frameParams = (FrameLayout.LayoutParams)
params;
frameParams.gravity = Gravity.RIGHT;
private void updateZoomButtonsEnabled() { |
| File |
|---|
| WebView.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Cast expression |
| Comment |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
// or out.
mZoomButtonsController.setZoomInEnabled(canZoomIn);
mZoomButtonsController.setZoomOutEnabled(canZoomOut);
<<<<<<< HEAD
=======
mZoomFitPageButton.setEnabled(mActualScale != mDefaultScale);
>>>>>>> 0d8b77c2453d0e597f94e39212e4bfeed8affffa
}
}
|
| Solution content |
|---|
// or out.
mZoomButtonsController.setZoomInEnabled(canZoomIn);
mZoomButtonsController.setZoomOutEnabled(canZoomOut);
}
}
|
| File |
|---|
| WebView.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |