public static synchronized Treatments create_note(String note, long timestamp, double position) { return create_note(note, timestamp, position, null); }
public static synchronized Treatments create_note(String note, long timestamp) { return create_note(note, timestamp, -1, null); }
public static synchronized Treatments create_note(String note, long timestamp) { return create_note(note, timestamp, -1, null); }
public static synchronized Treatments create_note(String note, long timestamp, double position) { return create_note(note, timestamp, position, null); }
public static synchronized Treatments create_note(String note, long timestamp) { return create_note(note, timestamp, -1, null); }
public static synchronized Treatments create_note(String note, long timestamp, double position) { return create_note(note, timestamp, position, null); }
public void onClick(DialogInterface dialog, int whichButton) { String treatment_text = edt.getText().toString().trim(); Log.d(TAG, "Got treatment note: " + treatment_text); Treatments.create_note(treatment_text, timestamp, position); // timestamp? Home.staticRefreshBGCharts(); if (treatment_text.length() > 0) { // display snackbar of the snackbar final View.OnClickListener mOnClickListener = new View.OnClickListener() { @Override public void onClick(View v) { Home.startHomeWithExtra(xdrip.getAppContext(), Home.CREATE_TREATMENT_NOTE, Long.toString(timestamp), Double.toString(position)); } }; Home.snackBar(R.string.add_note, getString(R.string.added) + ": " + treatment_text, mOnClickListener, mActivity); } if (Pref.getBooleanDefaultFalse("default_to_voice_notes")) showcasemenu(SHOWCASE_NOTE_LONG); dialog = null; } });
public void onClick(DialogInterface dialog, int whichButton) { String treatment_text = edt.getText().toString().trim(); Log.d(TAG, "Got treatment note: " + treatment_text); Treatments.create_note(treatment_text, timestamp, position); // timestamp? Home.staticRefreshBGCharts(); if (treatment_text.length() > 0) { // display snackbar of the snackbar final View.OnClickListener mOnClickListener = new View.OnClickListener() { @Override public void onClick(View v) { Home.startHomeWithExtra(xdrip.getAppContext(), Home.CREATE_TREATMENT_NOTE, Long.toString(timestamp), Double.toString(position)); } }; Home.snackBar(R.string.add_note, getString(R.string.added) + ": " + treatment_text, mOnClickListener, mActivity); } if (Pref.getBooleanDefaultFalse("default_to_voice_notes")) showcasemenu(SHOWCASE_NOTE_LONG); dialog = null; } });
Treatments.create_note(note_text, JoH.tsl()); staticRefreshBGCharts(); break; // don't process any more
Treatments.create_note(note_text, JoH.tsl()); staticRefreshBGCharts(); break; // don't process any more
voiceRecognitionText.setText(result.get(0)); voiceRecognitionText.setVisibility(View.VISIBLE); Treatments.create_note(treatment_text, 0); // timestamp? if (dialog != null) { dialog.cancel();
voiceRecognitionText.setText(result.get(0)); voiceRecognitionText.setVisibility(View.VISIBLE); Treatments.create_note(treatment_text, 0); // timestamp? if (dialog != null) { dialog.cancel();
if (notes != null) t.notes = notes; } else { t = Treatments.create_note(notes, timestamp, -1, nightscout_id); if (t == null) { Log.d(TAG, "Create note baulked and returned null, so skipping");
if (notes != null) t.notes = notes; } else { t = Treatments.create_note(notes, timestamp, -1, nightscout_id); if (t == null) { Log.d(TAG, "Create note baulked and returned null, so skipping");