manual invoke of loop in separate thread
This commit is contained in:
parent
4e3cc65d5d
commit
1f3aee091e
2 changed files with 9 additions and 1 deletions
|
@ -76,7 +76,14 @@ public class LoopFragment extends Fragment implements View.OnClickListener, Frag
|
|||
public void onClick(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.loop_run:
|
||||
getPlugin().invoke("Loop button", true);
|
||||
lastRunView.setText(MainApp.sResources.getString(R.string.executing));
|
||||
Thread thread = new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
getPlugin().invoke("Loop button", true);
|
||||
}
|
||||
});
|
||||
thread.start();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -498,4 +498,5 @@
|
|||
<string name="stoppingextendedbolus">Stopping extended bolus</string>
|
||||
<string name="updatingbasalrates">Updating basal rates</string>
|
||||
<string name="disconnecting">Disconnecting</string>
|
||||
<string name="executing">Executing</string>
|
||||
</resources>
|
||||
|
|
Loading…
Add table
Reference in a new issue