diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java index 0355e055e1..3965ef5326 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java @@ -207,7 +207,7 @@ public class VirtualPumpPlugin implements PluginBase, PumpInterface { public double getBaseBasalRate() { Profile profile = MainApp.getConfigBuilder().getProfile(); if (profile != null) - return profile.getBasal(); + return profile.getBasal() != null ? profile.getBasal() : 0d; else return 0d; } diff --git a/app/src/main/res/layout/careportal_newnstreatment_dialog.xml b/app/src/main/res/layout/careportal_newnstreatment_dialog.xml index 09d8a458a4..b3e29a104e 100644 --- a/app/src/main/res/layout/careportal_newnstreatment_dialog.xml +++ b/app/src/main/res/layout/careportal_newnstreatment_dialog.xml @@ -197,6 +197,60 @@ + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + android:textStyle="bold"/> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:layout_gravity="center" /> diff --git a/app/src/main/res/layout/overview_fragment_nsclient.xml b/app/src/main/res/layout/overview_fragment_nsclient.xml index 1a5771c26e..91255ec66f 100644 --- a/app/src/main/res/layout/overview_fragment_nsclient.xml +++ b/app/src/main/res/layout/overview_fragment_nsclient.xml @@ -478,108 +478,96 @@ android:id="@+id/overview_showprediction_label" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" + android:layout_gravity="center" android:text="@string/predictionshortlabel" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/prediction" - android:textStyle="bold" - android:paddingTop="4dp"/> + android:textStyle="bold"/> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:layout_gravity="center" /> diff --git a/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml b/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml index e7ddd35913..554aefb56c 100644 --- a/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml +++ b/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml @@ -562,108 +562,96 @@ android:id="@+id/overview_showprediction_label" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" + android:layout_gravity="center" android:text="@string/predictionshortlabel" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/prediction" - android:textStyle="bold" - android:paddingTop="4dp"/> + android:textStyle="bold"/> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:layout_gravity="center" /> diff --git a/app/src/main/res/layout/overview_fragment_smallheight.xml b/app/src/main/res/layout/overview_fragment_smallheight.xml index c45ca863e2..c390935581 100644 --- a/app/src/main/res/layout/overview_fragment_smallheight.xml +++ b/app/src/main/res/layout/overview_fragment_smallheight.xml @@ -235,108 +235,96 @@ android:id="@+id/overview_showprediction_label" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" + android:layout_gravity="center" android:text="@string/predictionshortlabel" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/prediction" - android:textStyle="bold" - android:paddingTop="4dp"/> + android:textStyle="bold"/> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:textStyle="bold" /> + android:layout_gravity="center" />