Simplify SWItem.generateLayout()
This commit is contained in:
parent
2dee025388
commit
fb4da4859a
|
@ -81,7 +81,7 @@ public class SWItem {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LinearLayout generateLayout(View view) {
|
public static LinearLayout generateLayout(View view) {
|
||||||
LinearLayout layout = (LinearLayout) view.findViewById(view.getId());
|
LinearLayout layout = (LinearLayout) view;
|
||||||
layout.removeAllViews();
|
layout.removeAllViews();
|
||||||
return layout;
|
return layout;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue