From a6351f44551ec6e623c2f503d230e4f34589b4ae Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 17 Aug 2017 21:17:52 +0200 Subject: [PATCH] Fix some warnings. --- .../plugins/ProfileNS/NSProfileFragment.java | 16 ++++++------- .../fragments/ProfileViewerDialog.java | 24 +++++++++---------- .../TreatmentsTempTargetFragment.java | 1 - 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ProfileNS/NSProfileFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/ProfileNS/NSProfileFragment.java index c8b5b2c5db..007c3dfbdf 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ProfileNS/NSProfileFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ProfileNS/NSProfileFragment.java @@ -24,14 +24,14 @@ public class NSProfileFragment extends SubscriberFragment { return nsProfilePlugin; } - private static TextView noProfile; - private static TextView units; - private static TextView dia; - private static TextView activeProfile; - private static TextView ic; - private static TextView isf; - private static TextView basal; - private static TextView target; + private TextView noProfile; + private TextView units; + private TextView dia; + private TextView activeProfile; + private TextView ic; + private TextView isf; + private TextView basal; + private TextView target; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/ProfileViewerDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/ProfileViewerDialog.java index 5fc19bc24d..b4461eabb7 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/ProfileViewerDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/ProfileViewerDialog.java @@ -30,18 +30,18 @@ public class ProfileViewerDialog extends DialogFragment { private static Logger log = LoggerFactory.getLogger(ProfileViewDialog.class); - private TextView noProfile; - private TextView units; - private TextView dia; - private TextView activeProfile; - private TextView ic; - private TextView isf; - private TextView basal; - private TextView target; - private View dateDelimiter; - private LinearLayout dateLayout; - private TextView dateTextView; - private Button refreshButton; + private TextView noProfile; + private TextView units; + private TextView dia; + private TextView activeProfile; + private TextView ic; + private TextView isf; + private TextView basal; + private TextView target; + private View dateDelimiter; + private LinearLayout dateLayout; + private TextView dateTextView; + private Button refreshButton; static ProfileViewerDialog newInstance(long time) { ProfileViewerDialog dialog = new ProfileViewerDialog(); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/TreatmentsTempTargetFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/TreatmentsTempTargetFragment.java index 008c82e612..9e3836e118 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/TreatmentsTempTargetFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/fragments/TreatmentsTempTargetFragment.java @@ -141,7 +141,6 @@ public class TreatmentsTempTargetFragment extends SubscriberFragment implements @Override public void onClick(View v) { final TempTarget tempTarget = (TempTarget) v.getTag(); - final Context finalContext = context; switch (v.getId()) { case R.id.temptargetrange_remove: AlertDialog.Builder builder = new AlertDialog.Builder(context);