Merge "removing unnecessary/dead code"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2d96b970b6
@@ -390,7 +390,9 @@ public class Workspace extends SmoothPagedView
|
||||
return SmoothPagedView.X_LARGE_MODE;
|
||||
}
|
||||
|
||||
private void onAddView(View child) {
|
||||
@Override
|
||||
protected void onViewAdded(View child) {
|
||||
super.onViewAdded(child);
|
||||
if (!(child instanceof CellLayout)) {
|
||||
throw new IllegalArgumentException("A Workspace can only have CellLayout children.");
|
||||
}
|
||||
@@ -400,36 +402,6 @@ public class Workspace extends SmoothPagedView
|
||||
cl.enableHardwareLayers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addView(View child, int index, LayoutParams params) {
|
||||
onAddView(child);
|
||||
super.addView(child, index, params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addView(View child) {
|
||||
onAddView(child);
|
||||
super.addView(child);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addView(View child, int index) {
|
||||
onAddView(child);
|
||||
super.addView(child, index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addView(View child, int width, int height) {
|
||||
onAddView(child);
|
||||
super.addView(child, width, height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addView(View child, LayoutParams params) {
|
||||
onAddView(child);
|
||||
super.addView(child, params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The open folder on the current screen, or null if there is none
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user