diff --git a/app/src/main/java/info/nightscout/androidaps/setupwizard/elements/SWItem.java b/app/src/main/java/info/nightscout/androidaps/setupwizard/elements/SWItem.java index d9cfe3710d..0cad26c553 100644 --- a/app/src/main/java/info/nightscout/androidaps/setupwizard/elements/SWItem.java +++ b/app/src/main/java/info/nightscout/androidaps/setupwizard/elements/SWItem.java @@ -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; }