configbuilder fragment translations

This commit is contained in:
Milos Kozak 2016-07-03 13:56:57 +02:00
parent 2b01b2a10b
commit 9f8d7d3dca
4 changed files with 13 additions and 9 deletions

View file

@ -287,7 +287,7 @@ public class ConfigBuilderFragment extends Fragment implements PluginBase, PumpI
t.carbs = (double) result.carbsDelivered; t.carbs = (double) result.carbsDelivered;
t.created_at = new Date(); t.created_at = new Date();
try { try {
MainApp.instance().getDbHelper().getDaoTreatments().create(t); MainApp.getDbHelper().getDaoTreatments().create(t);
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -368,8 +368,7 @@ public class ConfigBuilderFragment extends Fragment implements PluginBase, PumpI
*/ */
@Override @Override
public PumpEnactResult applyAPSRequest(APSResult request) { public PumpEnactResult applyAPSRequest(APSResult request) {
Double rateAfterConstraints = applyBasalConstraints(request.rate); request.rate = applyBasalConstraints(request.rate);
request.rate = rateAfterConstraints;
PumpEnactResult result = null; PumpEnactResult result = null;
if (request.rate == getBaseBasalRate()) { if (request.rate == getBaseBasalRate()) {

View file

@ -9,35 +9,34 @@
android:id="@+id/configbuilder_simpleitem_checkboxenabled" android:id="@+id/configbuilder_simpleitem_checkboxenabled"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_gravity="center" android:layout_gravity="center"
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" android:focusableInTouchMode="false"
android:text="Enabled" /> android:text="@string/enabled" />
<CheckBox <CheckBox
android:id="@+id/configbuilder_simpleitem_checkboxvisible" android:id="@+id/configbuilder_simpleitem_checkboxvisible"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_gravity="center" android:layout_gravity="center"
android:focusable="false" android:focusable="false"
android:focusableInTouchMode="false" android:focusableInTouchMode="false"
android:text="Show" /> android:text="@string/visible" />
<ImageView <ImageView
android:id="@+id/configbuilder_simpleitem_upimage" android:id="@+id/configbuilder_simpleitem_upimage"
android:layout_width="50dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:src="@android:drawable/arrow_up_float" /> android:src="@android:drawable/arrow_up_float"
android:contentDescription="@string/up" />
<TextView <TextView
android:id="@+id/configbuilder_simpleitem_name" android:id="@+id/configbuilder_simpleitem_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:text="Plugin name" android:text=""
android:textStyle="bold" /> android:textStyle="bold" />

View file

@ -196,4 +196,7 @@
<string name="configbuilder_nsclientversion_label">Verze NSClienta:</string> <string name="configbuilder_nsclientversion_label">Verze NSClienta:</string>
<string name="send">POSLAT</string> <string name="send">POSLAT</string>
<string name="missing">Chybí</string> <string name="missing">Chybí</string>
<string name="enabled">Povolený</string>
<string name="visible">Viditelný</string>
<string name="up">Nahoru</string>
</resources> </resources>

View file

@ -204,5 +204,8 @@
<string name="configbuilder_nightscoutversion_label">Nightscout version:</string> <string name="configbuilder_nightscoutversion_label">Nightscout version:</string>
<string name="send">SEND</string> <string name="send">SEND</string>
<string name="missing">Missing</string> <string name="missing">Missing</string>
<string name="enabled">Enabled</string>
<string name="visible">Visible</string>
<string name="up">Up</string>
</resources> </resources>