Merge pull request #1488 from schmitzn/fix-switem

Simplify SWItem.generateLayout()
This commit is contained in:
Milos Kozak 2018-11-29 15:25:38 +01:00 committed by GitHub
commit d750438cd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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