Merge pull request #1488 from schmitzn/fix-switem
Simplify SWItem.generateLayout()
This commit is contained in:
commit
d750438cd3
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ public class SWItem {
|
|||
}
|
||||
|
||||
public static LinearLayout generateLayout(View view) {
|
||||
LinearLayout layout = (LinearLayout) view.findViewById(view.getId());
|
||||
LinearLayout layout = (LinearLayout) view;
|
||||
layout.removeAllViews();
|
||||
return layout;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue