From fb4da4859a5c56cead2411b9d9c3d106372f1383 Mon Sep 17 00:00:00 2001 From: Nico Schmitz Date: Wed, 3 Oct 2018 22:36:21 +0200 Subject: [PATCH] Simplify SWItem.generateLayout() --- .../info/nightscout/androidaps/setupwizard/elements/SWItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }