remove test buttons

This commit is contained in:
Milos Kozak 2017-06-10 22:04:59 +02:00
parent 723c90c32d
commit f6650e33e4
2 changed files with 76 additions and 120 deletions

View file

@ -84,9 +84,6 @@ public class ActionsFragment extends Fragment implements View.OnClickListener {
tempBasal.setOnClickListener(this);
fill.setOnClickListener(this);
view.findViewById(R.id.actions_50_30).setOnClickListener(this);
view.findViewById(R.id.actions_400_15).setOnClickListener(this);
updateGUIIfVisible();
return view;
}
@ -207,24 +204,6 @@ public class ActionsFragment extends Fragment implements View.OnClickListener {
FillDialog fillDialog = new FillDialog();
fillDialog.show(manager, "FillDialog");
break;
case R.id.actions_50_30:
sHandler.post(new Runnable() {
@Override
public void run() {
DanaRv2Plugin danaRv2Plugin = (DanaRv2Plugin) MainApp.getSpecificPlugin(DanaRv2Plugin.class);
danaRv2Plugin.setHighTempBasalPercent(50);
}
});
break;
case R.id.actions_400_15:
sHandler.post(new Runnable() {
@Override
public void run() {
DanaRv2Plugin danaRv2Plugin = (DanaRv2Plugin) MainApp.getSpecificPlugin(DanaRv2Plugin.class);
danaRv2Plugin.setHighTempBasalPercent(400);
}
});
break;
}
}
}

View file

@ -91,31 +91,8 @@
android:text="@string/primefill"
android:textColor="@color/colorTreatmentButton" />
<Button
android:id="@+id/actions_400_15"
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="NEW Temp 400% 15min" />
<Button
android:id="@+id/actions_50_30"
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="NEW Temp 50% 30min" />
</LinearLayout>
</ScrollView>
</FrameLayout>