Simplify SWItem.generateLayout()

This commit is contained in:
Nico Schmitz 2018-10-03 22:36:21 +02:00
parent 2dee025388
commit fb4da4859a

View file

@ -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;
}