remove TODOs and comments
This commit is contained in:
parent
a1a64873fd
commit
fdbfa16e40
3 changed files with 1 additions and 6 deletions
|
@ -195,13 +195,11 @@ public class DanaRFragment extends Fragment implements PluginBase, PumpInterface
|
||||||
ServiceConnection mConnection = new ServiceConnection() {
|
ServiceConnection mConnection = new ServiceConnection() {
|
||||||
|
|
||||||
public void onServiceDisconnected(ComponentName name) {
|
public void onServiceDisconnected(ComponentName name) {
|
||||||
ToastUtils.showToastInUiThread(getContext(), "ExecutionService is disconnected"); // TODO: remove
|
|
||||||
mBounded = false;
|
mBounded = false;
|
||||||
mExecutionService = null;
|
mExecutionService = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onServiceConnected(ComponentName name, IBinder service) {
|
public void onServiceConnected(ComponentName name, IBinder service) {
|
||||||
ToastUtils.showToastInUiThread(getContext(), "ExecutionService is connected"); // TODO: remove
|
|
||||||
log.debug("Service is connected");
|
log.debug("Service is connected");
|
||||||
mBounded = true;
|
mBounded = true;
|
||||||
ExecutionService.LocalBinder mLocalBinder = (ExecutionService.LocalBinder) service;
|
ExecutionService.LocalBinder mLocalBinder = (ExecutionService.LocalBinder) service;
|
||||||
|
@ -835,7 +833,6 @@ public class DanaRFragment extends Fragment implements PluginBase, PumpInterface
|
||||||
if (getDanaRPump() != null) {
|
if (getDanaRPump() != null) {
|
||||||
if (absoluteRate > getDanaRPump().maxBasal) {
|
if (absoluteRate > getDanaRPump().maxBasal) {
|
||||||
absoluteRate = getDanaRPump().maxBasal;
|
absoluteRate = getDanaRPump().maxBasal;
|
||||||
if (Config.logConstraintsChanges && origAbsoluteRate != Constants.basalAbsoluteOnlyForCheckLimit)
|
|
||||||
if (Config.logConstraintsChanges && origAbsoluteRate != Constants.basalAbsoluteOnlyForCheckLimit)
|
if (Config.logConstraintsChanges && origAbsoluteRate != Constants.basalAbsoluteOnlyForCheckLimit)
|
||||||
log.debug("Limiting rate " + origAbsoluteRate + "U/h by pump constraint to " + absoluteRate + "U/h");
|
log.debug("Limiting rate " + origAbsoluteRate + "U/h by pump constraint to " + absoluteRate + "U/h");
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,8 +73,6 @@ public class ProfileViewDialog extends DialogFragment {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
DanaRFragment.getDanaRPump().lastSettingsRead = new Date(0);
|
DanaRFragment.getDanaRPump().lastSettingsRead = new Date(0);
|
||||||
// if (DanaRFragment.getDanaConnection() == null) DanaRFragment.setDanaConnection(new DanaConnection(MainApp.bus()));
|
|
||||||
// DanaRFragment.getDanaConnection().connectIfNotConnected("ProfileViewDialog");
|
|
||||||
DanaRFragment.doConnect("ProfileViewDialog");
|
DanaRFragment.doConnect("ProfileViewDialog");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -229,7 +229,7 @@ public class ExecutionService extends Service {
|
||||||
mSerialIOThread.disconnect("EventPreferenceChange");
|
mSerialIOThread.disconnect("EventPreferenceChange");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getPumpStatus() { // TODO rename after
|
private void getPumpStatus() {
|
||||||
try {
|
try {
|
||||||
MsgStatus statusMsg = new MsgStatus();
|
MsgStatus statusMsg = new MsgStatus();
|
||||||
MsgStatusBasic statusBasicMsg = new MsgStatusBasic();
|
MsgStatusBasic statusBasicMsg = new MsgStatusBasic();
|
||||||
|
|
Loading…
Reference in a new issue