Java Code Examples for com.eveningoutpost.dexdrip.Models.BgReading#futureReadings()
The following examples show how to use
com.eveningoutpost.dexdrip.Models.BgReading#futureReadings() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SystemStatus.java From xDrip with GNU General Public License v3.0 | 5 votes |
private void futureDataCheck() { futureDataDeleteButton.setVisibility(View.GONE); final List<BgReading> futureReadings = BgReading.futureReadings(); final List<Calibration> futureCalibrations = Calibration.futureCalibrations(); if((futureReadings != null && futureReadings.size() > 0) || (futureCalibrations != null && futureCalibrations.size() > 0)) { notes.append("\n- Your device has future data on it, Please double check the time and timezone on this phone."); futureDataDeleteButton.setVisibility(View.VISIBLE); } futureDataDeleteButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if(futureReadings != null && futureReadings.size() > 0) { for (BgReading bgReading : futureReadings) { bgReading.calculated_value = 0; bgReading.raw_data = 0; bgReading.timestamp = 0; bgReading.save(); } } if(futureCalibrations != null && futureCalibrations.size() > 0) { for (Calibration calibration : futureCalibrations) { calibration.slope_confidence = 0; calibration.sensor_confidence = 0; calibration.timestamp = 0; calibration.save(); } } } }); }
Example 2
Source File: SystemStatusFragment.java From xDrip with GNU General Public License v3.0 | 5 votes |
private void futureDataCheck() { futureDataDeleteButton.setVisibility(View.GONE); final List<BgReading> futureReadings = BgReading.futureReadings(); final List<Calibration> futureCalibrations = Calibration.futureCalibrations(); if ((futureReadings != null && futureReadings.size() > 0) || (futureCalibrations != null && futureCalibrations.size() > 0)) { notes.append("\n- Your device has future data on it, Please double check the time and timezone on this phone."); futureDataDeleteButton.setVisibility(View.VISIBLE); } futureDataDeleteButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if (futureReadings != null && futureReadings.size() > 0) { for (BgReading bgReading : futureReadings) { bgReading.calculated_value = 0; bgReading.raw_data = 0; bgReading.timestamp = 0; bgReading.save(); } } if (futureCalibrations != null && futureCalibrations.size() > 0) { for (Calibration calibration : futureCalibrations) { calibration.slope_confidence = 0; calibration.sensor_confidence = 0; calibration.timestamp = 0; calibration.save(); } } } }); }
Example 3
Source File: SystemStatus.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
private void futureDataCheck() { futureDataDeleteButton.setVisibility(View.GONE); final List<BgReading> futureReadings = BgReading.futureReadings(); final List<Calibration> futureCalibrations = Calibration.futureCalibrations(); if((futureReadings != null && futureReadings.size() > 0) || (futureCalibrations != null && futureCalibrations.size() > 0)) { notes.append("\n- Your device has future data on it, Please double check the time and timezone on this phone."); futureDataDeleteButton.setVisibility(View.VISIBLE); } futureDataDeleteButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if(futureReadings != null && futureReadings.size() > 0) { for (BgReading bgReading : futureReadings) { bgReading.calculated_value = 0; bgReading.raw_data = 0; bgReading.timestamp = 0; bgReading.save(); } } if(futureCalibrations != null && futureCalibrations.size() > 0) { for (Calibration calibration : futureCalibrations) { calibration.slope_confidence = 0; calibration.sensor_confidence = 0; calibration.timestamp = 0; calibration.save(); } } } }); }
Example 4
Source File: SystemStatusFragment.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
private void futureDataCheck() { futureDataDeleteButton.setVisibility(View.GONE); final List<BgReading> futureReadings = BgReading.futureReadings(); final List<Calibration> futureCalibrations = Calibration.futureCalibrations(); if ((futureReadings != null && futureReadings.size() > 0) || (futureCalibrations != null && futureCalibrations.size() > 0)) { notes.append("\n- Your device has future data on it, Please double check the time and timezone on this phone."); futureDataDeleteButton.setVisibility(View.VISIBLE); } futureDataDeleteButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if (futureReadings != null && futureReadings.size() > 0) { for (BgReading bgReading : futureReadings) { bgReading.calculated_value = 0; bgReading.raw_data = 0; bgReading.timestamp = 0; bgReading.save(); } } if (futureCalibrations != null && futureCalibrations.size() > 0) { for (Calibration calibration : futureCalibrations) { calibration.slope_confidence = 0; calibration.sensor_confidence = 0; calibration.timestamp = 0; calibration.save(); } } } }); }
Example 5
Source File: SystemStatus.java From xDrip-Experimental with GNU General Public License v3.0 | 5 votes |
private void futureDataCheck() { futureDataDeleteButton.setVisibility(View.GONE); final List<BgReading> futureReadings = BgReading.futureReadings(); final List<Calibration> futureCalibrations = Calibration.futureCalibrations(); if((futureReadings != null && futureReadings.size() > 0) || (futureCalibrations != null && futureCalibrations.size() > 0)) { notes.append("\n- Your device has future data on it, Please double check the time and timezone on this phone."); futureDataDeleteButton.setVisibility(View.VISIBLE); } futureDataDeleteButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if(futureReadings != null && futureReadings.size() > 0) { for (BgReading bgReading : futureReadings) { bgReading.calculated_value = 0; bgReading.raw_data = 0; bgReading.timestamp = 0; bgReading.save(); } } if(futureCalibrations != null && futureCalibrations.size() > 0) { for (Calibration calibration : futureCalibrations) { calibration.slope_confidence = 0; calibration.sensor_confidence = 0; calibration.timestamp = 0; calibration.save(); } } } }); }