Cleanups.
This commit is contained in:
parent
02af439dd7
commit
11777f8b7f
|
@ -16,19 +16,11 @@ import java.util.List;
|
||||||
import de.jotomo.ruffy.spi.history.PumpError;
|
import de.jotomo.ruffy.spi.history.PumpError;
|
||||||
import info.nightscout.androidaps.R;
|
import info.nightscout.androidaps.R;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by adrian on 17/08/17.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class ComboErrorHistoryDialog extends DialogFragment {
|
public class ComboErrorHistoryDialog extends DialogFragment {
|
||||||
private static Logger log = LoggerFactory.getLogger(ComboErrorHistoryDialog.class);
|
|
||||||
|
|
||||||
private TextView text;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View layout = inflater.inflate(R.layout.combo_error_history_fragment, container, false);
|
View layout = inflater.inflate(R.layout.combo_error_history_fragment, container, false);
|
||||||
text = (TextView) layout.findViewById(R.id.combo_error_history_text);
|
TextView text = (TextView) layout.findViewById(R.id.combo_error_history_text);
|
||||||
List<PumpError> errors = ComboPlugin.getPlugin().getPump().history.pumpErrorHistory;
|
List<PumpError> errors = ComboPlugin.getPlugin().getPump().history.pumpErrorHistory;
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd.MM. HH:mm");
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd.MM. HH:mm");
|
||||||
|
|
|
@ -16,19 +16,11 @@ import java.util.List;
|
||||||
import de.jotomo.ruffy.spi.history.Tdd;
|
import de.jotomo.ruffy.spi.history.Tdd;
|
||||||
import info.nightscout.androidaps.R;
|
import info.nightscout.androidaps.R;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by adrian on 17/08/17.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class ComboTddHistoryDialog extends DialogFragment {
|
public class ComboTddHistoryDialog extends DialogFragment {
|
||||||
private static Logger log = LoggerFactory.getLogger(ComboTddHistoryDialog.class);
|
|
||||||
|
|
||||||
private TextView text;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View layout = inflater.inflate(R.layout.combo_tdd_history_fragment, container, false);
|
View layout = inflater.inflate(R.layout.combo_tdd_history_fragment, container, false);
|
||||||
text = (TextView) layout.findViewById(R.id.combo_tdd_history_text);
|
TextView text = (TextView) layout.findViewById(R.id.combo_tdd_history_text);
|
||||||
List<Tdd> tdds = ComboPlugin.getPlugin().getPump().history.tddHistory;
|
List<Tdd> tdds = ComboPlugin.getPlugin().getPump().history.tddHistory;
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd.MM.");
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd.MM.");
|
||||||
|
|
Loading…
Reference in a new issue