diff --git a/app/src/main/java/info/nightscout/androidaps/MainActivity.java b/app/src/main/java/info/nightscout/androidaps/MainActivity.java index 5aae374ccb..01961df937 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/MainActivity.java @@ -18,9 +18,9 @@ import java.util.ArrayList; import info.nightscout.androidaps.events.EventRefreshGui; import info.nightscout.androidaps.plugins.ConfigBuilder.ConfigBuilderFragment; import info.nightscout.androidaps.plugins.LowSuspend.LowSuspendFragment; +import info.nightscout.androidaps.plugins.NSProfileViewer.NSProfileViewerFragment; import info.nightscout.androidaps.plugins.OpenAPSMA.OpenAPSMAFragment; import info.nightscout.androidaps.plugins.Overview.OverviewFragment; -import info.nightscout.androidaps.plugins.ProfileViewer.ProfileViewerFragment; import info.nightscout.androidaps.plugins.TempBasals.TempBasalsFragment; import info.nightscout.androidaps.plugins.Treatments.TreatmentsFragment; import info.nightscout.androidaps.plugins.VirtualPump.VirtualPumpFragment; @@ -53,7 +53,7 @@ public class MainActivity extends AppCompatActivity { pluginsList.add(OpenAPSMAFragment.newInstance()); pluginsList.add(treatmentsFragment = TreatmentsFragment.newInstance()); pluginsList.add(tempBasalsFragment = TempBasalsFragment.newInstance()); - pluginsList.add(ProfileViewerFragment.newInstance()); + pluginsList.add(NSProfileViewerFragment.newInstance()); pluginsList.add(ObjectivesFragment.newInstance()); pluginsList.add(ConfigBuilderFragment.newInstance()); @@ -64,7 +64,7 @@ public class MainActivity extends AppCompatActivity { pageAdapter.registerNewFragment(OpenAPSMAFragment.newInstance()); pageAdapter.registerNewFragment(treatmentsFragment = TreatmentsFragment.newInstance()); pageAdapter.registerNewFragment(tempBasalsFragment = TempBasalsFragment.newInstance()); - pageAdapter.registerNewFragment(ProfileViewerFragment.newInstance()); + pageAdapter.registerNewFragment(NSProfileViewerFragment.newInstance()); pageAdapter.registerNewFragment(ObjectivesFragment.newInstance()); pageAdapter.registerNewFragment(ConfigBuilderFragment.newInstance()); */ diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ProfileViewer/ProfileViewerFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSProfileViewer/NSProfileViewerFragment.java similarity index 86% rename from app/src/main/java/info/nightscout/androidaps/plugins/ProfileViewer/ProfileViewerFragment.java rename to app/src/main/java/info/nightscout/androidaps/plugins/NSProfileViewer/NSProfileViewerFragment.java index 9ff4f7aa78..352b37eca3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ProfileViewer/ProfileViewerFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSProfileViewer/NSProfileViewerFragment.java @@ -1,4 +1,4 @@ -package info.nightscout.androidaps.plugins.ProfileViewer; +package info.nightscout.androidaps.plugins.NSProfileViewer; import android.app.Activity; import android.os.Bundle; @@ -21,8 +21,8 @@ import info.nightscout.androidaps.events.EventNewBasalProfile; import info.nightscout.androidaps.plugins.PluginBase; import info.nightscout.client.data.NSProfile; -public class ProfileViewerFragment extends Fragment implements PluginBase { - private static Logger log = LoggerFactory.getLogger(ProfileViewerFragment.class); +public class NSProfileViewerFragment extends Fragment implements PluginBase { + private static Logger log = LoggerFactory.getLogger(NSProfileViewerFragment.class); private static TextView noProfile; private static TextView units; @@ -73,11 +73,6 @@ public class ProfileViewerFragment extends Fragment implements PluginBase { return PluginBase.PROFILE; } - public static ProfileViewerFragment newInstance(String param1, String param2) { - ProfileViewerFragment fragment = new ProfileViewerFragment(); - return fragment; - } - @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -87,7 +82,7 @@ public class ProfileViewerFragment extends Fragment implements PluginBase { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - View layout = inflater.inflate(R.layout.profileviewer_fragment, container, false); + View layout = inflater.inflate(R.layout.nsprofileviewer_fragment, container, false); noProfile = (TextView) layout.findViewById(R.id.profileview_noprofile); units = (TextView) layout.findViewById(R.id.profileview_units); @@ -102,8 +97,8 @@ public class ProfileViewerFragment extends Fragment implements PluginBase { return layout; } - public static ProfileViewerFragment newInstance() { - ProfileViewerFragment fragment = new ProfileViewerFragment(); + public static NSProfileViewerFragment newInstance() { + NSProfileViewerFragment fragment = new NSProfileViewerFragment(); return fragment; } diff --git a/app/src/main/res/layout/profileviewer_fragment.xml b/app/src/main/res/layout/nsprofileviewer_fragment.xml similarity index 88% rename from app/src/main/res/layout/profileviewer_fragment.xml rename to app/src/main/res/layout/nsprofileviewer_fragment.xml index 8449263575..cc14a3f88d 100644 --- a/app/src/main/res/layout/profileviewer_fragment.xml +++ b/app/src/main/res/layout/nsprofileviewer_fragment.xml @@ -2,7 +2,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".plugins.ProfileViewer.ProfileViewerFragment"> + tools:context=".plugins.NSProfileViewer.NSProfileViewerFragment"> @@ -39,7 +39,7 @@ @@ -52,7 +52,7 @@ @@ -65,7 +65,7 @@ @@ -78,7 +78,7 @@ @@ -91,7 +91,7 @@ @@ -104,7 +104,7 @@ diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 79ecc20a63..471163ea20 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -25,13 +25,14 @@ Gate: Start Verify - DIA: - Active profile: - IC: - ISF: - Basal: - Target: - NO PROFILE SET + Units: + DIA: + Active profile: + IC: + ISF: + Basal: + Target: + NO PROFILE SET Insulin: Carbs: IOB: @@ -51,7 +52,6 @@ U IOB TOTAL - Units: Run now VIRTUAL PUMP Base basal rate: @@ -93,7 +93,7 @@ Objectives OpenAPS MA Overview - Profile Viewer + NS Profile Temp Basals Treatments Virtual Pump