danar history context fix

This commit is contained in:
Milos Kozak 2016-08-15 10:04:52 +02:00
parent b1d5b12f55
commit d78d0be270
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick
private FragmentActivity context; private FragmentActivity context;
private CareportalFragment.OptionsToShow options; private static CareportalFragment.OptionsToShow options;
NSProfile profile; NSProfile profile;
String units; String units;

View file

@ -178,7 +178,7 @@ public class DanaRHistoryActivity extends Activity {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (mExecutionService.isConnected() || mExecutionService.isConnecting()) { if (mExecutionService.isConnected() || mExecutionService.isConnecting()) {
ToastUtils.showToastInUiThread(getApplicationContext(), getString(R.string.pumpbusy)); ToastUtils.showToastInUiThread(MainApp.instance().getApplicationContext(), getString(R.string.pumpbusy));
return; return;
} }
mHandler.post(new Runnable() { mHandler.post(new Runnable() {